diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e2db690b..08b6840f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -50,7 +50,7 @@ jupyter-releaser --help To run the Python tests, use: ```bash -pytest +hatch run test:test ``` ## Documentation diff --git a/jupyter_releaser/cli.py b/jupyter_releaser/cli.py index cb75e107..6e48db6a 100644 --- a/jupyter_releaser/cli.py +++ b/jupyter_releaser/cli.py @@ -21,7 +21,7 @@ def invoke(self, ctx): """Handle jupyter-releaser config while invoking a command""" # Get the command name and make sure it is valid cmd_name = ctx.protected_args[0] - if cmd_name not in self.commands: + if cmd_name not in self.commands or "--help" in ctx.args: super().invoke(ctx) if cmd_name == "list-envvars":