Skip to content

Commit

Permalink
Rename subworkflow argument to subworkflow instead of tool
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 19, 2024
1 parent f5fc666 commit 478be37
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nf_core/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1622,15 +1622,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, required=False, metavar="subworkflow name")
@click.argument("subworkflow", type=str, 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 @@ -1645,11 +1645,11 @@ def subworkflows_info(ctx, tool, dir):
from nf_core.subworkflows import SubworkflowInfo

try:
# Make tool name case insensitive
tool = tool.casefold()
# Make subworkflow name case insensitive
subworkflow = subworkflow.casefold()
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 478be37

Please sign in to comment.