diff options
author | nicm <nicm> | 2017-01-15 20:50:34 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-01-15 20:50:34 +0000 |
commit | 30548461439f02ed8327f96748035685a1a26ace (patch) | |
tree | c221c6cedf604b32a51ecae36ae5e1985a329aa7 /cmd-set-option.c | |
parent | 2b0bc9f1c5f546e822009c231a1bb0e1a2d6711a (diff) | |
download | rtmux-30548461439f02ed8327f96748035685a1a26ace.tar.gz rtmux-30548461439f02ed8327f96748035685a1a26ace.tar.bz2 rtmux-30548461439f02ed8327f96748035685a1a26ace.zip |
-q flag now needs to be checked in a couple more places.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r-- | cmd-set-option.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index fc035acb..475b91c2 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -83,6 +83,8 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) /* Parse option name and index. */ name = options_match(args->argv[0], &idx, &ambiguous); if (name == NULL) { + if (args_has(args, 'q')) + return (CMD_RETURN_NORMAL); if (ambiguous) cmdq_error(item, "ambiguous option: %s", args->argv[0]); else @@ -114,6 +116,8 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) } } if (scope == OPTIONS_TABLE_NONE) { + if (args_has(args, 'q')) + return (CMD_RETURN_NORMAL); cmdq_error(item, "%s", cause); free(cause); return (CMD_RETURN_ERROR); |