projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
380cf26
)
[PATCH] Abort early for bad option given to --cmdhelp
author
Jens Axboe
<jens.axboe@oracle.com>
Thu, 11 Jan 2007 13:04:47 +0000
(14:04 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Thu, 11 Jan 2007 13:04:47 +0000
(14:04 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
parse.c
patch
|
blob
|
blame
|
history
diff --git
a/parse.c
b/parse.c
index 2105e2b518334645c41ce02761866185e6625601..03856dc298f163e6f91e28f8b148b84e3130eced 100644
(file)
--- a/
parse.c
+++ b/
parse.c
@@
-437,6
+437,9
@@
int show_cmd_help(struct fio_option *options, const char *name)
continue;
}
continue;
}
+ if (!match)
+ continue;
+
printf("%16s: %s\n", "type", typehelp[o->type]);
printf("%16s: %s\n", "default", o->def ? o->def : "no default");
show_option_range(o);
printf("%16s: %s\n", "type", typehelp[o->type]);
printf("%16s: %s\n", "default", o->def ? o->def : "no default");
show_option_range(o);