diff --git a/locust/argument_parser.py b/locust/argument_parser.py index 827a2f880e..f158bba521 100644 --- a/locust/argument_parser.py +++ b/locust/argument_parser.py @@ -416,6 +416,12 @@ def setup_parser_arguments(parser): help="Stop after the specified amount of time, e.g. (300s, 20m, 3h, 1h30m, etc.). Only used together with --headless or --autostart. Defaults to run forever.", env_var="LOCUST_RUN_TIME", ) + parser.add_argument( + "--max-run-time", + metavar="