Skip to content

Commit 7dc7e99

Browse files
committed
adjust 'output' -> 'output-cwl' for intent clarity
1 parent a9c35ad commit 7dc7e99

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ click2cwl [-h|--help]
3232
The typical command to run the CWL convertion is as follows for the desired Python CLI process:
3333

3434
```shell
35-
click2cwl --process <path/to/python.py> [--output <path/to/package.cwl>] [--output-format <yaml|json>]
35+
click2cwl --process <path/to/python.py> [--output-cwl <path/to/package.cwl>] [--output-format <yaml|json>]
3636
```
3737

3838
By default, the output CWL is produced as YAML on the standard output with only the `CommandLineTool` definition.
39-
A file can be generated in YAML or JSON format by specifying the `--output` option.
39+
A file can be generated in YAML or JSON format by specifying the `--output-cwl` option.
4040

4141
An embedded `CommandLineTool` within a fully defined CWL `Workflow` graph can be generated by
4242
specifying the `-w|--workflow` shortcut option or explicitly using the `--cwl <clt|cwl>` options.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ name = "goldfinch"
77
version = "0.1.0"
88
description = "Climate service processes defined through CWL."
99
authors = [
10-
{ name = "Francis Charette-Migneault", email = "[email protected]" }
10+
{ name = "Francis Charette-Migneault", email = "[email protected]" },
11+
{ name = "David Huard", email = "[email protected]" },
1112
]
1213
readme = "README.md"
1314
requires-python = ">=3.10"
1415
license = "Apache-2.0"
1516
dependencies = [
1617
"click",
1718
"click-option-group",
18-
# Temporarily use fork until PR is merged upstream (https://github.com/Terradue/click2cwl/pull/4)
19-
# "click2cwl @ git+https://github.com/Terradue/click2cwl"
2019
"click2cwl==0.4.0",
2120
]
2221

src/goldfinch/utils/click2cwl_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def resolve_cli_command(
163163
multiple=True,
164164
)
165165
@click.option(
166-
"-o", "--output",
166+
"-o", "--output-cwl", "output_cwl",
167167
type=click.Path(exists=False, dir_okay=False),
168168
is_flag=False,
169169
help=(
@@ -322,7 +322,7 @@ def main(ctx: click.Context, **kwargs: str) -> None:
322322
elif "cwl_type" in kwargs:
323323
cli_ctx.args.extend(["--dump", kwargs["cwl_type"]])
324324
if kwargs.get("output"):
325-
output_cwl = kwargs["output"]
325+
output_cwl = kwargs["output_cwl"]
326326

327327
# add additional parameters to the CWL context
328328
for req in ["docker", "env", "wall-time", "coresMin", "coresMax", "ramMin", "ramMax", "metadata", "cwl-version"]:

0 commit comments

Comments
 (0)