Skip to content

Commit

Permalink
FIX do not show _default template in CLI help
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdoc committed Jun 22, 2024
1 parent 8c60e28 commit 15c5300
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neurodocker/cli/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15c5300

Please sign in to comment.