Skip to content

Commit 38c5038

Browse files
committed
Document new --dry-run flag
1 parent b342c3b commit 38c5038

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/usage/fix.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,26 @@ Fixing .env
2626
All warnings are fixed. Total: 2
2727
```
2828

29+
#### Dry run
30+
31+
If you want to run `fix` without modifying any files on disk, use the `--dry-run` flag.
32+
33+
```bash
34+
$ dotenv-linter fix --dry-run
35+
Fixing .env
36+
Dry run - not changing any files on disk.
37+
38+
BAR=bar_example_one
39+
# BAR=bar_example_two
40+
FOO=foo_example
41+
42+
43+
.env:2 DuplicatedKey: The BAR key is duplicated
44+
.env:3 LowercaseKey: The foo key should be in uppercase
45+
46+
All warnings are fixed. Total: 2
47+
```
48+
2949
#### Addition arguments
3050

3151
In addition, the `fix` command supports the following list of arguments:

0 commit comments

Comments
 (0)