diff --git a/detection_rules/main.py b/detection_rules/main.py index 879b252e413..b2e5d1a7a60 100644 --- a/detection_rules/main.py +++ b/detection_rules/main.py @@ -140,7 +140,12 @@ def generate_rules_index( @click.option("--action-connector-import", "-ac", is_flag=True, help="Include action connectors in export") @click.option("--exceptions-import", "-e", is_flag=True, help="Include exceptions in export") @click.option("--required-only", is_flag=True, help="Only prompt for required fields") -@click.option("--directory", "-d", type=click.Path(file_okay=False, exists=True), help="Load files from a directory") +@click.option( + "--directory", + "-d", + type=click.Path(file_okay=False, exists=True, path_type=Path), + help="Load files from a directory", +) @click.option( "--save-directory", "-s", diff --git a/pyproject.toml b/pyproject.toml index b6eb932824e..350f74e650e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "detection_rules" -version = "1.5.22" +version = "1.5.23" description = "Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Security’s Detection Engine." readme = "README.md" requires-python = ">=3.12"