Skip to content

Commit 2cdb907

Browse files
committed
Rename subworkflow argument in subworkflows info command
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 3b2aaa9 commit 2cdb907

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nf_core/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,15 +1608,15 @@ def subworkflows_lint(ctx, subworkflow, dir, registry, key, all, fail_warned, lo
16081608
# nf-core subworkflows info
16091609
@subworkflows.command("info")
16101610
@click.pass_context
1611-
@click.argument("tool", type=str, callback=normalize_case, required=False, metavar="subworkflow name")
1611+
@click.argument("subworkflow", type=str, callback=normalize_case, required=False, metavar="subworkflow name")
16121612
@click.option(
16131613
"-d",
16141614
"--dir",
16151615
type=click.Path(exists=True),
16161616
default=".",
16171617
help=r"Pipeline directory. [dim]\[default: Current working directory][/]",
16181618
)
1619-
def subworkflows_info(ctx, tool, dir):
1619+
def subworkflows_info(ctx, subworkflow, dir):
16201620
"""
16211621
Show developer usage information about a given subworkflow.
16221622
@@ -1633,7 +1633,7 @@ def subworkflows_info(ctx, tool, dir):
16331633
try:
16341634
subworkflow_info = SubworkflowInfo(
16351635
dir,
1636-
tool,
1636+
subworkflow,
16371637
ctx.obj["modules_repo_url"],
16381638
ctx.obj["modules_repo_branch"],
16391639
ctx.obj["modules_repo_no_pull"],

0 commit comments

Comments
 (0)