From 15c53006d02758c9f78b7bc1f8d23ffc74baa76e Mon Sep 17 00:00:00 2001 From: Matteo Visconti di Oleggio Castello Date: Sat, 22 Jun 2024 14:29:12 -0700 Subject: [PATCH] FIX do not show _default template in CLI help --- neurodocker/cli/generate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neurodocker/cli/generate.py b/neurodocker/cli/generate.py index 5ec0bb90..d670d319 100644 --- a/neurodocker/cli/generate.py +++ b/neurodocker/cli/generate.py @@ -307,6 +307,8 @@ def _get_params_for_registered_templates() -> list[click.Parameter]: names_tmpls = list(registered_templates_items()) names_tmpls.sort(key=lambda r: r[0]) # sort by name for name, tmpl in names_tmpls: + if name.startswith("_"): # Templates starting with _ are private + continue hlp = _create_help_for_template(Template(tmpl)) param = OptionEatAll( [f"--{name.lower()}"], type=KeyValuePair(), multiple=True, help=hlp