Skip to content

Commit 4d4ffb1

Browse files
authored
Fix for displaying help for the build_python command (#601)
* Fix show help for jupyter-releaser build-python * Revert new line * Fix run test command
1 parent 45ee32c commit 4d4ffb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jupyter-releaser --help
5050
To run the Python tests, use:
5151

5252
```bash
53-
pytest
53+
hatch run test:test
5454
```
5555

5656
## Documentation

jupyter_releaser/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def invoke(self, ctx):
2121
"""Handle jupyter-releaser config while invoking a command"""
2222
# Get the command name and make sure it is valid
2323
cmd_name = ctx.protected_args[0]
24-
if cmd_name not in self.commands:
24+
if cmd_name not in self.commands or "--help" in ctx.args:
2525
super().invoke(ctx)
2626

2727
if cmd_name == "list-envvars":

0 commit comments

Comments
 (0)