1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 01:59:17 +00:00

fix missing variables

This commit is contained in:
deadc0de6
2020-07-13 21:37:53 +02:00
parent e3b7359b95
commit 7775184d06
4 changed files with 4 additions and 4 deletions

View File

@@ -109,9 +109,11 @@ class Options(AttrMonitor):
"""constructor
@args: argument dictionary (if None use sys)
"""
self.args = args
self.args = {}
if not args:
self.args = docopt(USAGE, version=VERSION)
if args:
self.args = args.copy()
self.log = Logger()
self.debug = self.args['--verbose'] or ENV_DEBUG in os.environ
self.dry = self.args['--dry']