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.
2 parents 2e177a7 + b7a1980 commit af58611Copy full SHA for af58611
resources/scenarios/commander.py
@@ -135,7 +135,8 @@ def parse_args(self):
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:
+ # Check if 'help' attribute exists in help_args before accessing it
139
+ if hasattr(help_args, "help") and help_args.help:
140
help_parser.print_help()
141
sys.exit(0)
142
0 commit comments