Skip to content

Commit

Permalink
Load arguments from pyproject.toml as well, like locust does
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Mar 18, 2024
1 parent 45db0e9 commit 79be6b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions har2locust/argument_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from ._version import version

DEFAULT_CONFIG_FILES = ["~/.har2locust.conf", "har2locust.conf"]
DEFAULT_CONFIG_FILES = ["~/.har2locust.conf", "har2locust.conf", "pyproject.toml"]


def get_parser() -> configargparse.ArgumentParser:
Expand All @@ -18,7 +18,7 @@ def get_parser() -> configargparse.ArgumentParser:
Disable one of the default plugins:
har2locust --disable-plugins=rest.py myrecording.har
Parameters can also be set using environment variables or config files (har2locust.conf or ~/.har2locust.conf) For details about how to set parameters see https://goo.gl/R74nmi""",
Parameters can also be set using environment variables or config files (pyproject.toml, har2locust.conf, ~/.har2locust.conf) For details about how to set parameters see https://pypi.org/project/ConfigArgParse/""",
auto_env_var_prefix="HAR2LOCUST_",
add_env_var_help=False,
add_config_file_help=False,
Expand Down

0 comments on commit 79be6b3

Please sign in to comment.