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
Is your feature request related to a problem? Please describe.
We have a number of common configuration options in our use of Locust. Some of them have a short list of valid options and it's a bit of a hassle to go over to our repo documentation and/or code to figure out the valid options.
Describe the solution you'd like
I'd like to specify argparse choices when configuring a custom argument and have that affect the web UI. Example:
Currently, this will validate the option values on the command line and print the valid options on error. It just doesn't affect the web UI.
Describe alternatives you've considered
Since Locust uses argparse/configargparse for this, it seems best to leverage their implementation. I didn't really consider alternatives that didn't match argparse.
Additional context
If you'd like I'm happy to submit a PR for this.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
We have a number of common configuration options in our use of Locust. Some of them have a short list of valid options and it's a bit of a hassle to go over to our repo documentation and/or code to figure out the valid options.
Describe the solution you'd like
I'd like to specify argparse choices when configuring a custom argument and have that affect the web UI. Example:
Currently, this will validate the option values on the command line and print the valid options on error. It just doesn't affect the web UI.
Describe alternatives you've considered
Since Locust uses argparse/configargparse for this, it seems best to leverage their implementation. I didn't really consider alternatives that didn't match argparse.
Additional context
If you'd like I'm happy to submit a PR for this.
The text was updated successfully, but these errors were encountered: