1
0
Fork 0
mirror of https://github.com/cosmo-sims/cosmICweb-music.git synced 2024-09-19 16:53:43 +02:00

fix choice parameters

This commit is contained in:
Lukas Winkler 2024-04-22 15:29:59 +02:00
parent c9a8f1e336
commit d947b3b509
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -382,9 +382,12 @@ def get(ctx, target):
@cli.command(help="Download published ICs using the publication name")
@click.argument("publication_name")
@click.option("--traceback_radius", type=click.Choice([1, 2, 4, 10]), default=2)
@click.option(
"--traceback_radius", type=click.Choice(["1", "2", "4", "10"]), default="2"
)
@click.pass_context
def publication(ctx, publication_name, traceback_radius):
traceback_radius = float(traceback_radius)
args: Args = ctx.obj
publication_mode(args, publication_name, traceback_radius)