CuraApplication: Adding important note about the argparser

This commit is contained in:
Thomas Karl Pietrowski 2017-12-08 20:18:11 +01:00
parent b22981d089
commit abc2cdb701

View file

@ -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"]: