[PATCH] Pretty up command help output
authorJens Axboe <jens.axboe@oracle.com>
Wed, 10 Jan 2007 10:41:11 +0000 (11:41 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 10 Jan 2007 10:41:11 +0000 (11:41 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
parse.c

diff --git a/parse.c b/parse.c
index 102e607ddde58d942e6f2964ebaa50b0410ecfda..2e8a2a520f3906a66e608a7900f02c7a8f534221 100644 (file)
--- 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");
                        }
                }