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 <jens.axboe@oracle.com>
diff --git a/parse.c b/parse.c
index e09b1bb..84a0f52 100644
--- a/parse.c
+++ b/parse.c
@@ -537,9 +537,12 @@
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)