Skip to content

Commit

Permalink
rename parser init method
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Nov 9, 2022
1 parent e824f60 commit 393935e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust_plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
from locust import events
from locust.exception import StopUser
from locust.env import Environment
from locust.argument_parser import LocustArgumentParser
from locust.runners import Runner, WorkerRunner
import logging
from functools import wraps
import configargparse


@events.init_command_line_parser.add_listener
def add_checks_arguments(parser: configargparse.ArgumentParser):
def add_arguments(parser: LocustArgumentParser):
checks = parser.add_argument_group(
"locust-plugins - Checks",
"Sets locust's exit code to 3 if any of these thresholds were not met",
Expand Down

0 comments on commit 393935e

Please sign in to comment.