Commit d071475
committed
Prevent using --list-rules and --list-vars together
There's no check preventing `--list-rules` and `--list-vars` from being
passed simultaneously. If both are set, `--list_rules` wins silently
because of the `if/else if` chain. We will print an error message in
this situation.1 parent 995c217 commit d071475
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
926 | 931 | | |
927 | 932 | | |
928 | 933 | | |
| |||
0 commit comments