Merge pull request #2034 from hroff-1902/option-version

minor: add -V alias for --version
pull/2029/head
Matthias 7 years ago committed by GitHub
commit fbd229810f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,7 +23,7 @@ optional arguments:
-h, --help show this help message and exit
-v, --verbose Verbose mode (-vv for more, -vvv to get all messages).
--logfile FILE Log to the file specified
--version show program's version number and exit
-V, --version show program's version number and exit
-c PATH, --config PATH
Specify configuration file (default: None). Multiple
--config options may be used. Can be set to '-' to

@ -44,7 +44,7 @@ AVAILABLE_CLI_OPTIONS = {
metavar='FILE',
),
"version": Arg(
'--version',
'-V', '--version',
action='version',
version=f'%(prog)s {__version__}',
),

Loading…
Cancel
Save