diff options
Diffstat (limited to 'cmd-show-options.c')
-rw-r--r-- | cmd-show-options.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd-show-options.c b/cmd-show-options.c index 0e973ea0..90226ad3 100644 --- a/cmd-show-options.c +++ b/cmd-show-options.c @@ -126,6 +126,12 @@ cmd_show_options_exec(struct cmd *self, struct cmdq_item *item) parent = 0; if (o != NULL) cmd_show_options_print(self, item, o, idx, parent); + else if (*name == '@') { + if (args_has(args, 'q')) + goto fail; + cmdq_error(item, "invalid option: %s", argument); + goto fail; + } free(name); free(argument); |