mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:49:00 +08:00
CuraApplication: Adding important note about the argparser
This commit is contained in:
parent
b22981d089
commit
abc2cdb701
@ -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"]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user