From 1a9c15204122073691744a58964bc8ed21fe966c Mon Sep 17 00:00:00 2001 From: Thomas Karl Pietrowski Date: Sat, 9 Dec 2017 00:08:13 +0100 Subject: [PATCH] CuraApplication: Don't parse -h or --help before last check --- cura/CuraApplication.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 39da5868dd..069b80101b 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -386,7 +386,7 @@ class CuraApplication(QtApplication): def _onEngineCreated(self): # Last check for unknown commandline arguments - parser = self.getCommandlineParser() + parser = self.getCommandlineParser(with_help = True) parser.parse_args() self._engine.addImageProvider("camera", CameraImageProvider.CameraImageProvider()) @@ -630,7 +630,8 @@ 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 = argparse.ArgumentParser(prog = "cura", + add_help = False) # 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.