Skip to content

Commit d764173

Browse files
committed
Rename subworkflow argument to subworkflow instead of tool
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.
1 parent 9d18550 commit d764173

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

nf_core/__main__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,15 +1613,15 @@ def subworkflows_lint(ctx, subworkflow, dir, registry, key, all, fail_warned, lo
16131613
# nf-core subworkflows info
16141614
@subworkflows.command("info")
16151615
@click.pass_context
1616-
@click.argument("tool", type=str, required=False, metavar="subworkflow name")
1616+
@click.argument("subworkflow", type=str, required=False, metavar="subworkflow name")
16171617
@click.option(
16181618
"-d",
16191619
"--dir",
16201620
type=click.Path(exists=True),
16211621
default=".",
16221622
help=r"Pipeline directory. [dim]\[default: Current working directory][/]",
16231623
)
1624-
def subworkflows_info(ctx, tool, dir):
1624+
def subworkflows_info(ctx, subworkflow, dir):
16251625
"""
16261626
Show developer usage information about a given subworkflow.
16271627
@@ -1636,11 +1636,11 @@ def subworkflows_info(ctx, tool, dir):
16361636
from nf_core.subworkflows import SubworkflowInfo
16371637

16381638
try:
1639-
# Make tool name case insensitive
1640-
tool = tool.casefold()
1639+
# Make subworkflow name case insensitive
1640+
subworkflow = subworkflow.casefold()
16411641
subworkflow_info = SubworkflowInfo(
16421642
dir,
1643-
tool,
1643+
subworkflow,
16441644
ctx.obj["modules_repo_url"],
16451645
ctx.obj["modules_repo_branch"],
16461646
ctx.obj["modules_repo_no_pull"],

0 commit comments

Comments
 (0)