diff --git a/CHANGELOG.md b/CHANGELOG.md index c8bbc8ed94..a0572ca580 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ ### Linting +- Make `nf-core schema lint` and `nf-core lint` consistently not requiring positional path arguments ### General - Add function to enable chat notifications on MS Teams, accompanied by `hook_url` param to enable it. diff --git a/nf_core/__main__.py b/nf_core/__main__.py index 39cd1390ab..fe199837ca 100755 --- a/nf_core/__main__.py +++ b/nf_core/__main__.py @@ -930,7 +930,7 @@ def build(dir, no_prompts, web_only, url): # nf-core schema lint @schema.command() -@click.argument("schema_path", type=click.Path(exists=True), required=True, metavar="") +@click.argument("schema_path", type=click.Path(exists=True), required=False, metavar="") def lint(schema_path): """ Check that a given pipeline schema is valid.