Show alias in command help
authorJens Axboe <jens.axboe@oracle.com>
Thu, 15 Mar 2007 13:11:38 +0000 (14:11 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 15 Mar 2007 13:11:38 +0000 (14:11 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
parse.c

diff --git a/parse.c b/parse.c
index a0242c2713af32b9faad8aca7e3fcfefb9a6d704..f503916de528852135936fb2435543468ed5b256 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -502,6 +502,9 @@ static void show_option_help(struct fio_option *o)
                "no argument (opt)",
        };
 
+       if (o->alias)
+               printf("%20s: %s\n", "alias", o->alias);
+
        printf("%20s: %s\n", "type", typehelp[o->type]);
        printf("%20s: %s\n", "default", o->def ? o->def : "no default");
        show_option_range(o);