Add -v to set and setw to show only option value.

This commit is contained in:
Nicholas Marriott
2013-02-12 20:12:10 +00:00
parent 7360ff4496
commit 102cb77435
5 changed files with 36 additions and 21 deletions

View File

@ -234,7 +234,7 @@ cmd_set_option_set(struct cmd *self, struct cmd_ctx *ctx,
if (o == NULL)
return (-1);
s = options_table_print_entry(oe, o);
s = options_table_print_entry(oe, o, 0);
if (!args_has(args, 'q'))
ctx->info(ctx, "set option: %s -> %s", oe->name, s);
return (0);