commit | 70df2f19d2a456224fee54e17066298b307c3667 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Thu Jan 11 14:04:47 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Thu Jan 11 14:04:47 2007 +0100 |
tree | 8b155654036fa5562a73477026971bf3ea02c9c3 | |
parent | 380cf265b2ae035fc346718f30c3d01a18e4640f [diff] [blame] |
[PATCH] Abort early for bad option given to --cmdhelp Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/parse.c b/parse.c index 2105e2b..03856dc 100644 --- a/parse.c +++ b/parse.c
@@ -437,6 +437,9 @@ 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);