Skip to content

Commit

Permalink
Fix docstring and typing
Browse files Browse the repository at this point in the history
  • Loading branch information
dc-almeida committed Oct 23, 2024
1 parent 8b81968 commit c875598
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nomenclature/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,18 +284,19 @@ def cli_run_workflow(
@click.option(
"--definitions",
help="Optional name for definitions folder",
type=str,
type=click.Path(exists=True, path_type=Path),
default="definitions",
)
def cli_validate_scenarios(input_file: Path, definitions: Path):
"""Run a given input file through a workflow function defined in a workflow.py
"""Run a given input file through a DataStructureDefinition validation,
checking it against defined codelist(s)
Parameters
----------
input_file : Path
Input data file, must be IAMC format, .xlsx or .csv
definitions : str
Definitions folder inside workflow_directory, by default "definitions"
definitions : Path
Definitions folder with codelists, by default "definitions"
Raises
------
Expand Down

0 comments on commit c875598

Please sign in to comment.