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

Fixed checking existence of func in args.

This commit is contained in:
2021-09-26 18:53:08 +02:00
parent 7f99f91933
commit 1999f1dc7e

2
box.py
View File

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