1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 11:01:45 +00:00

fix gencfg arg

This commit is contained in:
deadc0de6
2024-10-23 14:49:31 +02:00
committed by deadc0de
parent 3870b323a3
commit 50e7cd7ab5

View File

@@ -150,14 +150,14 @@ class Options(AttrMonitor):
self.args = {}
if not args:
self.args = docopt(USAGE, version=VERSION)
if args:
self.args = args.copy()
if self.args['gencfg']:
# print config and exit
print(DEFAULT_CONFIG)
sys.exit(0)
if args:
self.args = args.copy()
self.debug = self.args['--verbose'] or ENV_DEBUG in os.environ
self.log = Logger(debug=self.debug)
self.dry = self.args['--dry']