'Is "--no-web" option removed from Locust 2.6.1

I'm trying to use locust 2.6.1 in no web mode but it's throwing following error

$>locust -f load_testing_class_based.py --no-web -c 1000 -r 100 --run-time 2m
locust: error: unrecognized arguments: --no-web -c

Also, how to add time limit for execution?? I ran this with web ui

$>locust -f load_testing_class_based.py -t 120s

but execution continued even after 2 mins



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source