mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-19 05:40:56 +00:00
fftools/cmdutils: surround option arguments by <> in help output
Makes it more clear that they are placeholders for actual values.
This commit is contained in:
parent
0b95e71aa0
commit
9cb52927b9
@ -132,10 +132,9 @@ void show_help_options(const OptionDef *options, const char *msg, int req_flags,
|
|||||||
else if (po->flags & OPT_FLAG_SPEC)
|
else if (po->flags & OPT_FLAG_SPEC)
|
||||||
av_strlcat(buf, "[:<spec>]", sizeof(buf));
|
av_strlcat(buf, "[:<spec>]", sizeof(buf));
|
||||||
|
|
||||||
if (po->argname) {
|
if (po->argname)
|
||||||
av_strlcat(buf, " ", sizeof(buf));
|
av_strlcatf(buf, sizeof(buf), " <%s>", po->argname);
|
||||||
av_strlcat(buf, po->argname, sizeof(buf));
|
|
||||||
}
|
|
||||||
printf("-%-17s %s\n", buf, po->help);
|
printf("-%-17s %s\n", buf, po->help);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user