parse: if profile is set, only show options relevant to the profile
[fio.git] / parse.c
diff --git a/parse.c b/parse.c
index b8ec3aa..f54dae6 100644 (file)
--- 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) ||