From: Jens Axboe Date: Wed, 14 Mar 2007 12:02:53 +0000 (+0100) Subject: Left justify help output X-Git-Tag: fio-1.14a~2^2~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=c167dedce798151c8aa8a59be45ce57a5260b1aa Left justify help output The right justification may look prettier, but it's harder to read and find the option. Signed-off-by: Jens Axboe --- diff --git a/parse.c b/parse.c index e09b1bbe..84a0f52a 100644 --- a/parse.c +++ b/parse.c @@ -537,9 +537,12 @@ int show_cmd_help(struct fio_option *options, const char *name) if (show_all || match) { found = 1; - printf("%20s: %s\n", o->name, o->help); - if (show_all) + if (match) + printf("%20s: %s\n", o->name, o->help); + if (show_all) { + printf("%-20s: %s\n", o->name, o->help); continue; + } } if (!match)