diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-01-17 13:12:43 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-01-20 10:37:32 +0100 |
commit | 9cb52927b9d50a7e3fb762b2ace5236e684da5df (patch) | |
tree | 514aee7a00e9f8108a61100f2174f91a8001f44f | |
parent | 0b95e71aa046b77ad31bb8891b7b6aede6a722c7 (diff) |
fftools/cmdutils: surround option arguments by <> in help output
Makes it more clear that they are placeholders for actual values.
-rw-r--r-- | fftools/cmdutils.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index f652820184..daf7673adb 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -132,10 +132,9 @@ void show_help_options(const OptionDef *options, const char *msg, int req_flags, else if (po->flags & OPT_FLAG_SPEC) av_strlcat(buf, "[:<spec>]", sizeof(buf)); - if (po->argname) { - av_strlcat(buf, " ", sizeof(buf)); - av_strlcat(buf, po->argname, sizeof(buf)); - } + if (po->argname) + av_strlcatf(buf, sizeof(buf), " <%s>", po->argname); + printf("-%-17s %s\n", buf, po->help); } printf("\n"); |