From facba0e53b7108d70f34e3eb01b54c2efd73f5f4 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 10 Jan 2007 11:41:11 +0100 Subject: [PATCH] [PATCH] Pretty up command help output Signed-off-by: Jens Axboe --- parse.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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"); } } -- 2.25.1