I was able to add custom command line parameters to locust script like below - ''' @events.init_command_line_parser.add_listener def init_parser(parser): parser.add_argument( '--custom-argument', help="It's working" ) '''
But I am unable to use the custom argument anywhere else in the script.