From: Jens Axboe Date: Wed, 10 Jan 2007 10:41:11 +0000 (+0100) Subject: [PATCH] Pretty up command help output X-Git-Tag: fio-1.12~175 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=facba0e53b7108d70f34e3eb01b54c2efd73f5f4;p=fio.git [PATCH] Pretty up command help output Signed-off-by: Jens Axboe --- diff --git a/parse.c b/parse.c index 102e607d..2e8a2a52 100644 --- a/parse.c +++ b/parse.c @@ -387,13 +387,10 @@ int show_cmd_help(struct fio_option *options, const char *name) if (show_all || match) { found = 1; - printf("%s: %s\n", o->name, o->help); + printf("%16s: %s\n", o->name, o->help); if (match) { - printf("type: %s\n", typehelp[o->type]); - if (o->def) - printf("default: %s\n", o->def); - else - printf("defaults: no default\n"); + printf("%16s: %s\n", "type", typehelp[o->type]); + printf("%16s: %s\n", "default", o->def ? o->def : "no default"); } }