From: Jens Axboe Date: Thu, 23 May 2013 19:14:03 +0000 (+0200) Subject: parse: if profile is set, only show options relevant to the profile X-Git-Tag: fio-2.1.1~12 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=4ac23d27a5e5dea73c4db4a4fcc46a6afe645bd0;p=fio.git parse: if profile is set, only show options relevant to the profile Signed-off-by: Jens Axboe --- diff --git a/parse.c b/parse.c index b8ec3aa8..f54dae62 100644 --- a/parse.c +++ b/parse.c @@ -1086,6 +1086,8 @@ int show_cmd_help(struct fio_option *options, const char *name) continue; if (!exec_profile && o->prof_name) continue; + if (exec_profile && !(o->prof_name && !strcmp(exec_profile, o->prof_name))) + continue; if (name) { if (!strcmp(name, o->name) ||