options: add -V as alias for --version

This is a common convention.
This commit is contained in:
wm4 2013-05-15 15:34:11 +02:00
parent 759b3bdc47
commit db69e0edd4
2 changed files with 2 additions and 1 deletions

View File

@ -2401,7 +2401,7 @@
*NOTE*: See ``--vd=help`` for a full list of available decoders.
--version
--version, -V
Print version string and exit.
--vf=<filter1[=parameter1:parameter2:...],filter2,...>

View File

@ -703,6 +703,7 @@ const m_option_t mplayer_opts[]={
{"help", (void *) help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
{"h", (void *) help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
{"version", (void *)print_version_opt, CONF_TYPE_PRINT_FUNC, CONF_NOCFG|CONF_GLOBAL|M_OPT_PRE_PARSE},
{"V", (void *)print_version_opt, CONF_TYPE_PRINT_FUNC, CONF_NOCFG|CONF_GLOBAL|M_OPT_PRE_PARSE},
#ifdef CONFIG_ENCODING
OPT_STRING("o", encode_output.file, CONF_GLOBAL),