summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-09-03 09:35:33 -0400
committerDan Davison <dandavison7@gmail.com>2020-09-03 09:50:23 -0400
commitba6535ea4169128f35c478bf30b409bd3f9d0673 (patch)
tree7b242cc91d8fc4c357c65c7d56da20bfbcf21be9
parentd1bcfd38fc2df31f08cb265ee932859b03fe4931 (diff)
Revert "Allow navigate to be activated with DELTA_NAVIGATE env var"
This reverts commit d718a3fc75f1796a24b4b9286308876b6e4a92c7. Using env vars for boolean flags like this should perhaps wait for changes in clap. See https://github.com/clap-rs/clap/issues/1476 https://github.com/TeXitoi/structopt/issues/372
-rw-r--r--src/cli.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 587bb3c0..6c29f9dc 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -228,7 +228,7 @@ pub struct Opt {
/// Emulate diff-so-fancy (https://github.com/so-fancy/diff-so-fancy)
pub diff_so_fancy: bool,
- #[structopt(long = "navigate", env = "DELTA_NAVIGATE")]
+ #[structopt(long = "navigate")]
/// Activate diff navigation: use n to jump forwards and N to jump backwards. To change the
/// file labels used see --file-modified-label, --file-removed-label, --file-added-label,
/// --file-renamed-label.