Skip to content

Commit

Permalink
try naming the parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Mar 5, 2025
1 parent b91c2c8 commit ad45dc3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hera_notebook_templates/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def runfunc(ctx, basename, **kwargs):
) if v['inferred_type_name'] != 'bool' else
click.option(
f"--{param.replace('_', '-')}/--no-{param.replace('_', '-')}",
param,
help=v['help'],
default=eval(v['default'])
)
Expand All @@ -138,10 +139,11 @@ def runfunc(ctx, basename, **kwargs):

return click.command(name=notebook)(runfunc)

@main.command()
@click.option('--tempId', '--tempId', 'temp_Id', default=None, help='tempId')
def test(**kwargs):
print(kwargs)
# @main.command()
# @click.option('--tempId', '--tempId', 'temp_Id', default=None, help='tempId')
# @click.option("--doit/--no-doit", "dSPURT", default=True)
# def test(**kwargs):
# print(kwargs)

for nb in NOTEBOOK_DICT:
run.add_command(run_notebook_factory(nb))

0 comments on commit ad45dc3

Please sign in to comment.