projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
48946b4
)
Left justify help output
author
Jens Axboe
<jens.axboe@oracle.com>
Wed, 14 Mar 2007 12:02:53 +0000
(13:02 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 14 Mar 2007 12:02:53 +0000
(13:02 +0100)
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>
parse.c
patch
|
blob
|
blame
|
history
diff --git
a/parse.c
b/parse.c
index e09b1bbe42998655125d23b00c3b0b7d35214489..84a0f52ab54f025d48a0bca3a4f8650ed421a825 100644
(file)
--- 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;
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;
continue;
+ }
}
if (!match)
}
if (!match)