CuraApplication: Allow unknown arguments

This commit is contained in:
Thomas Karl Pietrowski 2017-12-08 22:09:49 +01:00
parent 35ed042a72
commit 044c538887

View File

@ -634,7 +634,7 @@ class CuraApplication(QtApplication):
CuraApplication.addCommandLineOptions(parser) CuraApplication.addCommandLineOptions(parser)
# Important: It is important to keep this line here! # Important: It is important to keep this line here!
# In Uranium we allow to pass unknown arguments to the final executable or script. # In Uranium we allow to pass unknown arguments to the final executable or script.
parsed_command_line = vars(parser.parse_args()) parsed_command_line = vars(parser.known_args()[0])
if parsed_command_line["single_instance"]: if parsed_command_line["single_instance"]:
Logger.log("i", "Checking for the presence of an ready running Cura instance.") Logger.log("i", "Checking for the presence of an ready running Cura instance.")