diff options
author | Thomas Karl Pietrowski <thopiekar@googlemail.com> | 2017-12-10 00:27:15 +0300 |
---|---|---|
committer | Thomas Karl Pietrowski <thopiekar@googlemail.com> | 2017-12-10 00:27:15 +0300 |
commit | b4aed1da22de53306ef7fa812a3380503b2f18a7 (patch) | |
tree | d4f9ff2f6ad099741abf7bf2cf5ec2952af4a6b7 /cura_app.py | |
parent | bcc31fb19b378eb2f024ef194b4324a0a0d2baa3 (diff) |
Simplify getting known args
Diffstat (limited to 'cura_app.py')
-rwxr-xr-x | cura_app.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cura_app.py b/cura_app.py index 56ae51aaa3..b5844055ab 100755 --- a/cura_app.py +++ b/cura_app.py @@ -16,8 +16,7 @@ parser.add_argument('--debug', default = False, help = "Turn on the debug mode by setting this option." ) -known_args, unknown_args = parser.parse_known_args() -known_args = vars(known_args) +known_args = vars(parser.parse_known_args()[0]) if not known_args["debug"]: def get_cura_dir_path(): |