X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=parse.c;h=5c5d2ad989fc23e627cc17a46ea1e7af70d9f848;hp=84a0f52ab54f025d48a0bca3a4f8650ed421a825;hb=7837213b66e20a8d91e7069f5823852f42c41440;hpb=c167dedce798151c8aa8a59be45ce57a5260b1aa diff --git a/parse.c b/parse.c index 84a0f52a..5c5d2ad9 100644 --- a/parse.c +++ b/parse.c @@ -21,18 +21,18 @@ static void show_option_range(struct fio_option *o) static void show_option_values(struct fio_option *o) { - const char *msg; int i = 0; do { - msg = o->posval[i].ival; - if (!msg) - break; + const struct value_pair *vp = &o->posval[i]; - if (!i) - printf("%20s: ", "valid values"); + if (!vp->ival) + break; - printf("%s,", msg); + printf("%20s: %-10s", i == 0 ? "valid values" : "", vp->ival); + if (vp->help) + printf(" %s", vp->help); + printf("\n"); i++; } while (i < PARSE_MAX_VP);