Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2017-01-18 10:01:12 +00:00
2 changed files with 7 additions and 1 deletions

View File

@ -130,7 +130,8 @@ cmd_show_options_one(struct cmd *self, struct cmdq_item *item,
cmdq_error(item, "ambiguous option: %s", name);
return (CMD_RETURN_ERROR);
}
if (options_match_get(oo, name, &idx, 0, &ambiguous) != NULL)
if (*name != '@' &&
options_match_get(oo, name, &idx, 0, &ambiguous) != NULL)
return (CMD_RETURN_NORMAL);
cmdq_error(item, "unknown option: %s", name);
return (CMD_RETURN_ERROR);