1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 07:56:49 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
tansy
41fc87dbd0
Merge 2d847a3cd5 into c5098961b0 2024-08-08 15:25:52 +08:00
tansy
2d847a3cd5
Merge branch 'ytdl-org:master' into version-gnu-V 2024-07-11 15:51:09 +02:00
tansy
66992a3b7e 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'.
2024-07-10 18:03:10 +00:00

View File

@ -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(