Add -?, -help, and --help as alternative options to get help.

Originally committed as revision 20906 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ramiro Polla 2009-12-21 02:20:13 +00:00
parent 7f11e745b2
commit 870e015048
4 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
{ "L", OPT_EXIT, {(void*)show_license}, "show license" }, { "L", OPT_EXIT, {(void*)show_license}, "show license" },
{ "h", OPT_EXIT, {(void*)show_help}, "show help" }, { "h", OPT_EXIT, {(void*)show_help}, "show help" },
{ "?", OPT_EXIT, {(void*)show_help}, "show help" },
{ "help", OPT_EXIT, {(void*)show_help}, "show help" },
{ "-help", OPT_EXIT, {(void*)show_help}, "show help" },
{ "version", OPT_EXIT, {(void*)show_version}, "show version" }, { "version", OPT_EXIT, {(void*)show_version}, "show version" },
{ "formats" , OPT_EXIT, {(void*)show_formats }, "show available formats" }, { "formats" , OPT_EXIT, {(void*)show_formats }, "show available formats" },
{ "codecs" , OPT_EXIT, {(void*)show_codecs }, "show available codecs" }, { "codecs" , OPT_EXIT, {(void*)show_codecs }, "show available codecs" },

View File

@ -228,7 +228,7 @@ specified for the inputs.
@item -L @item -L
Show license. Show license.
@item -h @item -h, -?, -help, --help
Show help. Show help.
@item -version @item -version

View File

@ -29,7 +29,7 @@ ffplay [options] @file{input_file}
@section Main options @section Main options
@table @option @table @option
@item -h @item -h, -?, -help, --help
Show help. Show help.
@item -version @item -version
Show version. Show version.

View File

@ -251,7 +251,7 @@ Show available bitstream filters.
Show available protocols. Show available protocols.
@item -filters @item -filters
Show available libavfilter filters. Show available libavfilter filters.
@item -h @item -h, -?, -help, --help
Show help. Show help.
@item -loglevel @var{loglevel} @item -loglevel @var{loglevel}
Set the logging level used by the library. Set the logging level used by the library.