[FFmpeg-devel] [PATCH 7/8] fftools/cmdutils: surround option arguments by <> in help output
Anton Khirnov
anton at khirnov.net
Wed Jan 17 14:40:34 EET 2024
Makes it more clear that they are placeholders for actual values.
---
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");
--
2.42.0
More information about the ffmpeg-devel
mailing list