1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 04:33:59 +01:00

Merge pull request #2168 from BlueGone/input-cmd-arg-nb

Check if command input has at least 2 arguments
This commit is contained in:
emersion 2018-06-27 15:13:14 +01:00 committed by GitHub
commit 1579fc1d91
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -31,7 +31,7 @@ static struct cmd_handler input_handlers[] = {
struct cmd_results *cmd_input(int argc, char **argv) {
struct cmd_results *error = NULL;
if ((error = checkarg(argc, "input", EXPECTED_AT_LEAST, 1))) {
if ((error = checkarg(argc, "input", EXPECTED_AT_LEAST, 2))) {
return error;
}