Skip to content

Commit

Permalink
-L and -v are mutex now
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Feb 1, 2018
1 parent 347a812 commit 5ce2a71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ word matching.

* Added `-S` as a synonym for `--smart-case`.

* Added many more checks for mutually exclusive command-line options.

# Bug fixes

* Column numbers were not getting colorized in the output. Added
Expand Down
2 changes: 1 addition & 1 deletion lib/App/Ack/ConfigLoader.pm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sub _invalid_combinations {

return (
[qw(-l)] => [@context, @pretty, @filename, qw(-L -o --passthru --output --max-count --column -f -g --show-types)],
[qw(-L)] => [@context, @pretty, @filename, qw(-l -o --passthru --output --max-count --column -f -g --show-types -c --count)],
[qw(-L)] => [@context, @pretty, @filename, qw(-l -o --passthru --output --max-count --column -f -g --show-types -c --count -v)],
[qw(--lines)] => [@context, @pretty, @filename, qw(-l --files-with-matches --files-without-matches -L -o --passthru --match -m --max-count -1 -c --count --column --print0 -f -g --show-types)],
[qw(-o)] => [@context, qw(--output -c --count --column --column -f --show-types)],
[qw(--passthru)] => [@context, qw(--output --column -m --max-count -1 -c --count -f -g)],
Expand Down

0 comments on commit 5ce2a71

Please sign in to comment.