You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @cyberw@fstamour I was having some trouble to set up this project locally but after a succcessful setup now I am stuck with how to get to the fix.. The possible fix provided when executed refers to a conflict addressing the pre-existence of a default help argument.. If you can maybe elaborate further on the possible fix, I'll get it working
Prerequisites
Description
(I'm not certain you would consider this a bug or a feature request.)
How to reproduce
locust.conf
file in the current directorylocust --help
(or evenlocust -f locustfile.py
)Expected result
locust
to load thelocustfile.py
and run theinit_command_line_parser
hooklocust --help
's outputActual result
locustfile.py
is not loaded at all when runninglocust --help
.locust --help
's output.Possible fix
Replace the built-in help action by something that loads the locustfile before printing the help.
--help
argument (parser.add_argument('-h', '--help', action="store_true" ...
)args.help == True
parser.print_help()
andparser.exit()
(just like the default_HelpAction
does)Command line
locust --help
Locustfile contents
Python version
Test with both Python 3.10.12 and 3.12.6
Locust version
2.31.6
Operating system
Ubuntu 22.04.4 LTS and 24.04 LTS
The text was updated successfully, but these errors were encountered: