Skip to content

Commit

Permalink
Rename subworkflow argument in subworkflows info command
Browse files Browse the repository at this point in the history
The subworkflow info command referred to the subworkflow name
as "tool" in its list of arguments. It has been renamed to
"subworkflow" to align with the other subworkflow commands.
  • Loading branch information
pmoris committed Mar 20, 2024
1 parent 3b2aaa9 commit 2cdb907
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nf_core/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1608,15 +1608,15 @@ def subworkflows_lint(ctx, subworkflow, dir, registry, key, all, fail_warned, lo
# nf-core subworkflows info
@subworkflows.command("info")
@click.pass_context
@click.argument("tool", type=str, callback=normalize_case, required=False, metavar="subworkflow name")
@click.argument("subworkflow", type=str, callback=normalize_case, required=False, metavar="subworkflow name")
@click.option(
"-d",
"--dir",
type=click.Path(exists=True),
default=".",
help=r"Pipeline directory. [dim]\[default: Current working directory][/]",
)
def subworkflows_info(ctx, tool, dir):
def subworkflows_info(ctx, subworkflow, dir):
"""
Show developer usage information about a given subworkflow.
Expand All @@ -1633,7 +1633,7 @@ def subworkflows_info(ctx, tool, dir):
try:
subworkflow_info = SubworkflowInfo(
dir,
tool,
subworkflow,
ctx.obj["modules_repo_url"],
ctx.obj["modules_repo_branch"],
ctx.obj["modules_repo_no_pull"],
Expand Down

0 comments on commit 2cdb907

Please sign in to comment.