Open bakhtos opened 1 month ago
I completely agree. If you can do it in a backwards-compatible way and update the docs I’m all for it.
If I could rewrite history, the positional parameter would be the locustfile (but I’m not sure its worth changing right now). If we were to do that we’d have to be careful though (bump major version, give good error messages, etc. And I guess that wasn’t your point anyway :)
@cyberw I believe it is possible to pickup the arguments both ways and then just merge the lists before passing it on. We can just leave the old way there but omit it from the documentation so that old scripts work but new users only learn the new way. I will work on this eventually. You can assign the issue to me
Prerequisites
Description
Currently, particular Users to run are specified on the command line like this
Doing this
as positional arguments is awkward if the command is big. The list of users should be a keyword CLI parameter like
--users UserClass1 UserClass2
, then it can be specified in any order of arguments in the command.