From 15a7f94a01e84cbd464d40c053b57f39efd5e884 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 7 Dec 2023 11:58:30 +0100 Subject: [PATCH] make some cli arguments required --- pytest_abra/cli.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pytest_abra/cli.py b/pytest_abra/cli.py index 2b1dfa7..0d82951 100644 --- a/pytest_abra/cli.py +++ b/pytest_abra/cli.py @@ -11,14 +11,13 @@ from pytest_abra.utils import get_datetime_string def run(): parser = argparse.ArgumentParser() - parser.add_argument("--env_paths", type=str, help="List of loaded env files separated with ;") - parser.add_argument("--recipes_dir", type=Path, help="List of loaded env files separated with ;") - parser.add_argument("--output_dir", type=Path, help="List of loaded env files separated with ;") + parser.add_argument("--env_paths", type=str, help="List of loaded env files separated with ;", required=True) + parser.add_argument("--recipes_dir", type=Path, help="List of loaded env files separated with ;", required=True) + parser.add_argument("--output_dir", type=Path, help="List of loaded env files separated with ;", required=True) parser.add_argument("--timeout", type=int, help="Set Playwright timeout in ms", default=20_000) parser.add_argument("--debug", action="store_true", help="Enable Playwright debug mode") parser.add_argument("--resume", action="store_true", help="Re-run the most recent test, skipping passed tests") args = parser.parse_args() - ENV_FILES = [Path(s) for s in args.env_paths.split(";")] # -------------------------- enable playwright debug ------------------------- #