diff --git a/bin/swarm b/bin/swarm index 05ad1b8..776e0de 100644 --- a/bin/swarm +++ b/bin/swarm @@ -12,6 +12,7 @@ import psutil import configargparse import locust_plugins import locust.util.timespan +import locust_swarm logging.basicConfig( format="%(asctime)s,%(msecs)d %(levelname)-4s [%(filename)s:%(lineno)d] %(message)s", @@ -58,6 +59,13 @@ parser.add_argument( help=configargparse.SUPPRESS, env_var="LOCUST_RUN_TIME", ) +parser.add_argument( + "--version", + "-V", + action="version", + help="Show program's version number and exit", + version="%(prog)s {}".format(locust_swarm.__version__), +) args, unrecognized_args = parser.parse_known_args() diff --git a/locust_swarm/__init__.py b/locust_swarm/__init__.py index f871089..13361d1 100644 --- a/locust_swarm/__init__.py +++ b/locust_swarm/__init__.py @@ -1 +1 @@ -__version__ = "1.0.15" +__version__ = "1.0.16"