Skip to content

Commit

Permalink
Fix logic inversion with --git in --help
Browse files Browse the repository at this point in the history
$ exa --help
[...]
  -@, --extended     display extended attribute keys and sizes

$ exa -@
Unrecognized option: '@'.

$ exa --extended
Unrecognized option: 'extended'.

$ exa --git
Option --git is useless without option --long.

$ exa -l --git
.rw-r--r--  11k user 10 Dec 18:26 -- Cargo.lock
[...]
  • Loading branch information
jbeich committed Dec 14, 2015
1 parent b9eb364 commit b35927f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,8 @@ LONG VIEW OPTIONS
-U, --created display timestamp of creation for a file
"##;

static GIT_HELP: &'static str = r##" -@, --extended display extended attribute keys and sizes"##;
static EXTENDED_HELP: &'static str = r##" --git show git status for files"##;

static GIT_HELP: &'static str = r##" --git show git status for files"##;
static EXTENDED_HELP: &'static str = r##" -@, --extended display extended attribute keys and sizes"##;

#[cfg(test)]
mod test {
Expand Down

0 comments on commit b35927f

Please sign in to comment.