From abc2cdb7010bd06d3cbb46f89d7287b3d6d9c169 Mon Sep 17 00:00:00 2001 From: Thomas Karl Pietrowski Date: Fri, 8 Dec 2017 20:18:11 +0100 Subject: [PATCH] CuraApplication: Adding important note about the argparser --- cura/CuraApplication.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 30ce730562..1c610eebb6 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -628,6 +628,8 @@ class CuraApplication(QtApplication): # Peek the arguments and look for the 'single-instance' flag. parser = argparse.ArgumentParser(prog="cura") # pylint: disable=bad-whitespace CuraApplication.addCommandLineOptions(parser) + # Important: It is important to keep this line here! + # In Uranium we allow to pass unknown arguments to the final executable or script. parsed_command_line = vars(parser.parse_args()) if parsed_command_line["single_instance"]: