Skip to content

Commit

Permalink
Fix for displaying help for the build_python command (#601)
Browse files Browse the repository at this point in the history
* Fix show help for jupyter-releaser build-python

* Revert new line

* Fix run test command
  • Loading branch information
rakhmaevao authored Dec 16, 2024
1 parent 45ee32c commit 4d4ffb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jupyter-releaser --help
To run the Python tests, use:

```bash
pytest
hatch run test:test
```

## Documentation
Expand Down
2 changes: 1 addition & 1 deletion jupyter_releaser/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 4d4ffb1

Please sign in to comment.