Add missing environment variable for --skip-unchanged

Fixes #581
significant_whitespace
Wilfred Hughes 2023-10-13 08:41:38 +07:00
parent dfe48a29e1
commit 21ed3ec48b
2 changed files with 4 additions and 0 deletions

@ -10,6 +10,9 @@ Added the option `--strip-cr`. This removes all carriage return
characters before diffing, which is helpful when dealing with a mix of
Windows and non-Windows flies.
The option `--skip-unchanged` now has a corresponding environment
option `DFT_SKIP_UNCHANGED`.
## 0.52 (released 8th October 2023)
### Parsing

@ -218,6 +218,7 @@ json: Output the results as a machine-readable JSON array with an element per fi
)
.arg(
Arg::new("skip-unchanged").long("skip-unchanged")
.env("DFT_SKIP_UNCHANGED")
.help("Don't display anything if a file is unchanged.")
)
.arg(