From 66992a3b7ef8982dcbeaa4c9e457904e93165c08 Mon Sep 17 00:00:00 2001 From: tansy Date: Wed, 10 Jul 2024 18:03:10 +0000 Subject: [PATCH] Output name of the program for --version 'The GNU standard --version option should direct the program to print information about its name, version' So added a name of program to version displaye along with shotr option \`-V'. --- youtube_dl/options.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 61705d1f0..8608e8fe0 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -118,7 +118,7 @@ def parseOpts(overrideArguments=None): fmt.format_option_strings = _format_option_string kw = { - 'version': __version__, + 'version': 'youtube-dl '+__version__, 'formatter': fmt, 'usage': '%prog [OPTIONS] URL [URL...]', 'conflict_handler': 'resolve', @@ -132,7 +132,7 @@ def parseOpts(overrideArguments=None): action='help', help='Print this help text and exit') general.add_option( - '--version', + '-V', '--version', action='version', help='Print program version and exit') general.add_option(