+static void show_option_range(struct fio_option *o, FILE *out)
+{
+ if (!o->minval && !o->maxval)
+ return;
+
+ fprintf(out, "%20s: min=%d", "range", o->minval);
+ if (o->maxval)
+ fprintf(out, ", max=%d", o->maxval);
+ fprintf(out, "\n");
+}
+
+static void show_option_values(struct fio_option *o)
+{
+ int i;
+
+ for (i = 0; i < PARSE_MAX_VP; i++) {
+ const struct value_pair *vp = &o->posval[i];
+
+ if (!vp->ival)
+ continue;
+
+ printf("%20s: %-10s", i == 0 ? "valid values" : "", vp->ival);
+ if (vp->help)
+ printf(" %s", vp->help);
+ printf("\n");
+ }
+
+ if (i)
+ printf("\n");
+}
+
+static void show_option_help(struct fio_option *o, FILE *out)
+{
+ const char *typehelp[] = {
+ "invalid",
+ "string (opt=bla)",
+ "string (opt=bla)",
+ "string with possible k/m/g postfix (opt=4k)",
+ "string with time postfix (opt=10s)",
+ "string (opt=bla)",
+ "string with dual range (opt=1k-4k,4k-8k)",
+ "integer value (opt=100)",
+ "boolean value (opt=1)",
+ "no argument (opt)",
+ "deprecated",
+ };
+
+ if (o->alias)
+ fprintf(out, "%20s: %s\n", "alias", o->alias);
+
+ fprintf(out, "%20s: %s\n", "type", typehelp[o->type]);
+ fprintf(out, "%20s: %s\n", "default", o->def ? o->def : "no default");
+ if (o->prof_name)
+ fprintf(out, "%20s: only for profile '%s'\n", "valid", o->prof_name);
+ show_option_range(o, stdout);
+ show_option_values(o);
+}
+
+static unsigned long get_mult_time(char c)