mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-16 14:33:39 +00:00
fix gencfg arg
This commit is contained in:
@@ -150,14 +150,14 @@ class Options(AttrMonitor):
|
|||||||
self.args = {}
|
self.args = {}
|
||||||
if not args:
|
if not args:
|
||||||
self.args = docopt(USAGE, version=VERSION)
|
self.args = docopt(USAGE, version=VERSION)
|
||||||
|
if args:
|
||||||
|
self.args = args.copy()
|
||||||
|
|
||||||
if self.args['gencfg']:
|
if self.args['gencfg']:
|
||||||
# print config and exit
|
# print config and exit
|
||||||
print(DEFAULT_CONFIG)
|
print(DEFAULT_CONFIG)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if args:
|
|
||||||
self.args = args.copy()
|
|
||||||
self.debug = self.args['--verbose'] or ENV_DEBUG in os.environ
|
self.debug = self.args['--verbose'] or ENV_DEBUG in os.environ
|
||||||
self.log = Logger(debug=self.debug)
|
self.log = Logger(debug=self.debug)
|
||||||
self.dry = self.args['--dry']
|
self.dry = self.args['--dry']
|
||||||
|
|||||||
Reference in New Issue
Block a user