diff --git a/nomenclature/cli.py b/nomenclature/cli.py index 6aada836..babf9542 100644 --- a/nomenclature/cli.py +++ b/nomenclature/cli.py @@ -156,10 +156,10 @@ def check_region_aggregation( differences_df.reset_index().to_excel(differences, index=False) -@cli.command("export-definition") +@cli.command("export-definitions") @click.argument("path", type=click.Path(exists=True, path_type=Path)) @click.argument("target", type=click.Path(path_type=Path)) -def cli_export_definition_to_excel( +def cli_export_definitions_to_excel( path: Path, target: Path, ): diff --git a/tests/test_cli.py b/tests/test_cli.py index 3886643b..9db788ca 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -32,7 +32,7 @@ def test_cli_installed(): command in result.stdout for command in ( "check-region-aggregation", - "export-definition", + "export-definitions", "validate-project", "validate-yaml", ) @@ -323,7 +323,7 @@ def test_cli_export_to_excel(tmpdir): runner.invoke( cli, [ - "export-definition", + "export-definitions", str(TEST_DATA_DIR / "general-config"), str(file), ],