1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-24 11:11:54 +00:00

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'.
This commit is contained in:
tansy 2024-07-10 18:03:10 +00:00
parent a452f9437c
commit 66992a3b7e

View file

@ -118,7 +118,7 @@ def parseOpts(overrideArguments=None):
fmt.format_option_strings = _format_option_string fmt.format_option_strings = _format_option_string
kw = { kw = {
'version': __version__, 'version': 'youtube-dl '+__version__,
'formatter': fmt, 'formatter': fmt,
'usage': '%prog [OPTIONS] URL [URL...]', 'usage': '%prog [OPTIONS] URL [URL...]',
'conflict_handler': 'resolve', 'conflict_handler': 'resolve',
@ -132,7 +132,7 @@ def parseOpts(overrideArguments=None):
action='help', action='help',
help='Print this help text and exit') help='Print this help text and exit')
general.add_option( general.add_option(
'--version', '-V', '--version',
action='version', action='version',
help='Print program version and exit') help='Print program version and exit')
general.add_option( general.add_option(