From 4ac23d27a5e5dea73c4db4a4fcc46a6afe645bd0 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 23 May 2013 21:14:03 +0200 Subject: [PATCH] parse: if profile is set, only show options relevant to the profile Signed-off-by: Jens Axboe --- parse.c | 2 ++ 1 file changed, 2 insertions(+) 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) || -- 2.25.1