Skip to content

Commit

Permalink
Exclude --not and --or
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Sep 26, 2024
1 parent 2cf4cc8 commit 5628db1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dev/crank-mutex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ sub invalid_combinations {
my @case = qw( -i -I --smart-case );

return (
[qw(--and)] => [qw( --or )],
[qw(-l)] => [@context, @file_lists, @pretty, @filename, @output, qw(--passthru --column --show-types)],
[qw(-L)] => [@context, @file_lists, @pretty, @filename, @output, qw(--passthru --column --show-types -c -v)],
[@output] => [@context, @file_lists, @output, qw(-c --column --show-types)],
Expand All @@ -32,6 +31,7 @@ sub invalid_combinations {
[qw(-f)] => [qw(-v), @case],
[qw(-g)] => [qw(--not)],
[@fg] => [@fg, @pretty, qw(-x -c -u --files-from)],
[qw(--or)] => [qw(--and --not)],
[qw(-p)] => [@context, @file_lists, qw(--passthru -c)],
[qw(-v)] => [qw(--column -o --output --passthru)],
[qw(-u)] => [@fg, qw(--output)],
Expand Down
2 changes: 2 additions & 0 deletions lib/App/Ack/ConfigLoader.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,7 @@ sub mutex_options {
},
not => {
g => 1,
or => 1,
},
o => {
A => 1,
Expand All @@ -1112,6 +1113,7 @@ sub mutex_options {
},
or => {
and => 1,
not => 1,
},
output => {
A => 1,
Expand Down

0 comments on commit 5628db1

Please sign in to comment.