mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 15:09:03 +08:00
CuraApplication: Getting argparser from Uranium
This commit is contained in:
parent
abc2cdb701
commit
8c74092f48
@ -626,7 +626,7 @@ class CuraApplication(QtApplication):
|
||||
@classmethod
|
||||
def preStartUp(cls):
|
||||
# Peek the arguments and look for the 'single-instance' flag.
|
||||
parser = argparse.ArgumentParser(prog="cura") # pylint: disable=bad-whitespace
|
||||
parser = cls.getCommandlineParser()
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user