From db69e0edd474e81c0dac32f3a04c4b25dd4f98be Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 15 May 2013 15:34:11 +0200 Subject: options: add -V as alias for --version This is a common convention. --- DOCS/man/en/options.rst | 2 +- core/cfg-mplayer.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst index 2e94d367ac..8eec8408a7 100644 --- a/DOCS/man/en/options.rst +++ b/DOCS/man/en/options.rst @@ -2401,7 +2401,7 @@ *NOTE*: See ``--vd=help`` for a full list of available decoders. ---version +--version, -V Print version string and exit. --vf= diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h index 21e694d06c..8eb5234f3f 100644 --- a/core/cfg-mplayer.h +++ b/core/cfg-mplayer.h @@ -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), -- cgit v1.2.3