mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
commands: replace EXPECTED_LESS_THAN with EXPECTED_AT_MOST
This makes it a bit more obvious what the expected number of arguments is.
This commit is contained in:
parent
000d96e525
commit
9227cb7d67
5 changed files with 7 additions and 7 deletions
|
|
@ -25,9 +25,9 @@ struct cmd_results *checkarg(int argc, const char *name, enum expected_args type
|
|||
error_name = "at least ";
|
||||
}
|
||||
break;
|
||||
case EXPECTED_LESS_THAN:
|
||||
if (argc >= val) {
|
||||
error_name = "less than ";
|
||||
case EXPECTED_AT_MOST:
|
||||
if (argc > val) {
|
||||
error_name = "at most ";
|
||||
}
|
||||
break;
|
||||
case EXPECTED_EQUAL_TO:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue