Simplify getting known args

This commit is contained in:
Thomas Karl Pietrowski 2017-12-09 22:27:15 +01:00
parent bcc31fb19b
commit b4aed1da22

View file

@ -16,8 +16,7 @@ parser.add_argument('--debug',
default = False, default = False,
help = "Turn on the debug mode by setting this option." help = "Turn on the debug mode by setting this option."
) )
known_args, unknown_args = parser.parse_known_args() known_args = vars(parser.parse_known_args()[0])
known_args = vars(known_args)
if not known_args["debug"]: if not known_args["debug"]:
def get_cura_dir_path(): def get_cura_dir_path():