From 70df2f19d2a456224fee54e17066298b307c3667 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 11 Jan 2007 14:04:47 +0100 Subject: [PATCH] [PATCH] Abort early for bad option given to --cmdhelp Signed-off-by: Jens Axboe --- parse.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.25.1