From 79be6b3c388ac29c0fb212668e2ec79f8eb432bc Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Mon, 18 Mar 2024 09:03:49 +0100 Subject: [PATCH] Load arguments from pyproject.toml as well, like locust does --- har2locust/argument_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/har2locust/argument_parser.py b/har2locust/argument_parser.py index 80a1b92..fe8973e 100644 --- a/har2locust/argument_parser.py +++ b/har2locust/argument_parser.py @@ -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: @@ -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,