1
0
mirror of https://github.com/gryf/boxpy.git synced 2025-12-18 21:10:17 +01:00

Fix clashing version from boxpy and subcommands.

Currently, you could pass long version of '--version' option to either
boxpy itself and subcommands create and rebuild. With this patch proper
context is now detected.
This commit is contained in:
2021-08-19 20:14:04 +02:00
parent bd59dd378e
commit 3c43263bb9

2
box.py
View File

@@ -1398,7 +1398,7 @@ def main():
LOG.set_verbose(args.verbose, args.quiet)
if args.version:
if not getattr(args, 'func') and args.version:
LOG.info(f'boxpy {__version__}')
parser.exit()