Skip to content

Commit

Permalink
fix gencfg arg
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Oct 24, 2024
1 parent 3870b32 commit 50e7cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotdrop/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ def __init__(self, args=None):
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']
Expand Down

0 comments on commit 50e7cd7

Please sign in to comment.