projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Abort early for bad option given to --cmdhelp
[fio.git]
/
parse.c
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;
}
+ 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);