diff options
author | Canop <cano.petrole@gmail.com> | 2020-01-27 22:23:43 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-01-27 22:28:47 +0100 |
commit | 42ac6eac1df92dc6725a72aaa16b15cb1dd69923 (patch) | |
tree | fb010767f20bddc364e04a6dc63c7c1f53ce57ee /src/clap.rs | |
parent | 4ae1078086a8e65ff1aca0ccea3650c7c73b97c3 (diff) |
simplification of git_ignore options to only 2 states
I guess nobody was able to explain the 3 possible values.
I've also used libgit2 to compute files to ignore.
Diffstat (limited to 'src/clap.rs')
-rw-r--r-- | src/clap.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/clap.rs b/src/clap.rs index 8e9db5e..f410cbf 100644 --- a/src/clap.rs +++ b/src/clap.rs @@ -39,11 +39,10 @@ pub fn clap_app() -> clap::App<'static, 'static> { .help("where to write the produced path (if any)"), ) .arg( - clap::Arg::with_name("gitignore") - .short("g") - .long("gitignore") - .takes_value(true) - .help("respect .gitignore rules (yes, no, auto)"), + clap::Arg::with_name("show-gitignored") + .short("i") + .long("show-gitignored") + .help("show files which should be ignored according to git"), ) .arg( clap::Arg::with_name("height") |