When a flag option is used in a format, it should use the number form

not string.
This commit is contained in:
nicm
2017-01-30 21:41:17 +00:00
parent b6099f31ea
commit 3408595f77
4 changed files with 8 additions and 5 deletions

View File

@ -110,7 +110,7 @@ cmd_show_options_print(struct cmd *self, struct cmdq_item *item,
name = options_name(o);
}
value = options_tostring(o, idx);
value = options_tostring(o, idx, 0);
if (args_has(self->args, 'v'))
cmdq_print(item, "%s", value);
else if (options_isstring(o)) {