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:
Ian Fan 2018-10-23 10:40:03 +01:00
parent 000d96e525
commit 9227cb7d67
5 changed files with 7 additions and 7 deletions

View file

@ -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: