mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
CuraApplication: Adding important note about the argparser
This commit is contained in:
parent
b22981d089
commit
abc2cdb701
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue