From: Jens Axboe Date: Thu, 11 Jan 2007 13:04:47 +0000 (+0100) Subject: [PATCH] Abort early for bad option given to --cmdhelp X-Git-Tag: fio-1.12~158 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=70df2f19d2a456224fee54e17066298b307c3667 [PATCH] Abort early for bad option given to --cmdhelp Signed-off-by: Jens Axboe --- diff --git a/parse.c b/parse.c index 2105e2b5..03856dc2 100644 --- 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);