Browse code

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

Originally committed as revision 20906 to svn://svn.ffmpeg.org/ffmpeg/trunk

Ramiro Polla authored on 2009/12/21 11:20:13
Showing 4 changed files
... ...
@@ -1,5 +1,8 @@
1 1
     { "L", OPT_EXIT, {(void*)show_license}, "show license" },
2 2
     { "h", OPT_EXIT, {(void*)show_help}, "show help" },
3
+    { "?", OPT_EXIT, {(void*)show_help}, "show help" },
4
+    { "help", OPT_EXIT, {(void*)show_help}, "show help" },
5
+    { "-help", OPT_EXIT, {(void*)show_help}, "show help" },
3 6
     { "version", OPT_EXIT, {(void*)show_version}, "show version" },
4 7
     { "formats"  , OPT_EXIT, {(void*)show_formats  }, "show available formats" },
5 8
     { "codecs"   , OPT_EXIT, {(void*)show_codecs   }, "show available codecs" },
... ...
@@ -228,7 +228,7 @@ specified for the inputs.
228 228
 @item -L
229 229
 Show license.
230 230
 
231
-@item -h
231
+@item -h, -?, -help, --help
232 232
 Show help.
233 233
 
234 234
 @item -version
... ...
@@ -29,7 +29,7 @@ ffplay [options] @file{input_file}
29 29
 @section Main options
30 30
 
31 31
 @table @option
32
-@item -h
32
+@item -h, -?, -help, --help
33 33
 Show help.
34 34
 @item -version
35 35
 Show version.
... ...
@@ -251,7 +251,7 @@ Show available bitstream filters.
251 251
 Show available protocols.
252 252
 @item -filters
253 253
 Show available libavfilter filters.
254
-@item -h
254
+@item -h, -?, -help, --help
255 255
 Show help.
256 256
 @item -loglevel @var{loglevel}
257 257
 Set the logging level used by the library.