Merge pull request #2034 from hroff-1902/option-version
minor: add -V alias for --version
This commit is contained in:
commit
fbd229810f
@ -23,7 +23,7 @@ optional arguments:
|
|||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
-v, --verbose Verbose mode (-vv for more, -vvv to get all messages).
|
-v, --verbose Verbose mode (-vv for more, -vvv to get all messages).
|
||||||
--logfile FILE Log to the file specified
|
--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
|
-c PATH, --config PATH
|
||||||
Specify configuration file (default: None). Multiple
|
Specify configuration file (default: None). Multiple
|
||||||
--config options may be used. Can be set to '-' to
|
--config options may be used. Can be set to '-' to
|
||||||
|
@ -44,7 +44,7 @@ AVAILABLE_CLI_OPTIONS = {
|
|||||||
metavar='FILE',
|
metavar='FILE',
|
||||||
),
|
),
|
||||||
"version": Arg(
|
"version": Arg(
|
||||||
'--version',
|
'-V', '--version',
|
||||||
action='version',
|
action='version',
|
||||||
version=f'%(prog)s {__version__}',
|
version=f'%(prog)s {__version__}',
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user