Skip to content

Commit

Permalink
Display help message when pipx install is run without arguments (#1266
Browse files Browse the repository at this point in the history
)

* Display help message when `pipx install` is run without arguments

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
dukecat0 and pre-commit-ci[bot] authored Feb 25, 2024
1 parent 6555533 commit 7e2e363
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/1266.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Display help message when `pipx install` is run without arguments.
2 changes: 1 addition & 1 deletion src/pipx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def _add_install(subparsers: argparse._SubParsersAction, shared_parser: argparse
description=INSTALL_DESCRIPTION,
parents=[shared_parser],
)
p.add_argument("package_spec", help="package name(s) or pip installation spec(s)", nargs="*")
p.add_argument("package_spec", help="package name(s) or pip installation spec(s)", nargs="+")
add_include_dependencies(p)
p.add_argument(
"--force",
Expand Down

0 comments on commit 7e2e363

Please sign in to comment.