mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
fftools/cmdutils: indicate specifiers in option syntax in help output
This commit is contained in:
parent
43323c3802
commit
68af3e37cc
@ -126,6 +126,12 @@ void show_help_options(const OptionDef *options, const char *msg, int req_flags,
|
||||
first = 0;
|
||||
}
|
||||
av_strlcpy(buf, po->name, sizeof(buf));
|
||||
|
||||
if (po->flags & OPT_FLAG_PERSTREAM)
|
||||
av_strlcat(buf, "[:<stream_spec>]", sizeof(buf));
|
||||
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user