diff options
author | Ian Fan <[email protected]> | 2018-10-23 10:40:03 +0100 |
---|---|---|
committer | Ian Fan <[email protected]> | 2018-10-23 10:51:54 +0100 |
commit | 9227cb7d673b012a0c6730800d528f9d729972b6 (patch) | |
tree | 32f4a9782328486f529c09fe2bb8092c25b9993d /sway/commands.c | |
parent | 000d96e52539fd6b8ecf6f6d0d399a1bedbbb9d9 (diff) |
commands: replace EXPECTED_LESS_THAN with EXPECTED_AT_MOST
This makes it a bit more obvious what the expected number of arguments is.
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands.c b/sway/commands.c index 6a5eb3dd..37c7169a 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -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: |