We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff0bba commit f70dca2Copy full SHA for f70dca2
resources/scenarios/commander.py
@@ -131,6 +131,14 @@ def setup(self):
131
self.success = TestStatus.PASSED
132
133
def parse_args(self):
134
+ # Only print "outer" args from parent class when using --help
135
+ help_parser = argparse.ArgumentParser(usage="%(prog)s [options]")
136
+ self.add_options(help_parser)
137
+ help_args, _ = help_parser.parse_known_args()
138
+ if help_args.help:
139
+ help_parser.print_help()
140
+ sys.exit(0)
141
+
142
previous_releases_path = ""
143
parser = argparse.ArgumentParser(usage="%(prog)s [options]")
144
parser.add_argument(
0 commit comments