From 50e7cd7ab51373a3e135f210d410e46aec60b40c Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Wed, 23 Oct 2024 14:49:31 +0200 Subject: [PATCH] fix gencfg arg --- dotdrop/options.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotdrop/options.py b/dotdrop/options.py index c4fe301..93905e8 100644 --- a/dotdrop/options.py +++ b/dotdrop/options.py @@ -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']