[FFmpeg-cvslog] fftools/cmdutils: surround option arguments by <> in help output
Anton Khirnov
git at videolan.org
Sat Jan 20 11:42:28 EET 2024
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jan 17 13:12:43 2024 +0100| [9cb52927b9d50a7e3fb762b2ace5236e684da5df] | committer: Anton Khirnov
fftools/cmdutils: surround option arguments by <> in help output
Makes it more clear that they are placeholders for actual values.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9cb52927b9d50a7e3fb762b2ace5236e684da5df
---
fftools/cmdutils.c | 7 +++----
1 file 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");
More information about the ffmpeg-cvslog
mailing list