Repository: DiamondLightSource/httomo (language: python)

Issue:
Change `--save_all` to `--save-all` (underscore to hyphen) for consistency compared to other multi-word flags



Discussion / hints:

Fix patch:
diff --git a/httomo/cli.py b/httomo/cli.py
index 5f4523a3c..d29854b12 100644
--- a/httomo/cli.py
+++ b/httomo/cli.py
@@ -67,7 +67,7 @@ def check(yaml_config: Path, in_data: Path = None):
     help=" The number of the CPU cores per process.",
 )
 @click.option(
-    "--save_all",
+    "--save-all",
     is_flag=True,
     help="Save intermediate datasets for all tasks in the pipeline.",
 )


Test patch:
diff --git a/tests/conftest.py b/tests/conftest.py
index 787ed0172..0c7c1ec2b 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -58,7 +58,7 @@ def cmd():
         "-m",
         "httomo",
         "run",
-        "--save_all",
+        "--save-all",
         "--ncore",
         "2",
         "output_dir/",