Skip to content

Commit 4b665a7

Browse files
committed
completions: only complete --options when a leading - has been entered
1 parent e8cfe05 commit 4b665a7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/1638.misc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
For shell completions, show `--option` values only when a leading `-` has been entered.

src/pipx/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ def cli() -> ExitCode:
11711171
try:
11721172
hide_cursor()
11731173
parser, subparsers = get_command_parser()
1174-
argcomplete.autocomplete(parser)
1174+
argcomplete.autocomplete(parser, always_complete_options=False)
11751175
parsed_pipx_args = parser.parse_args()
11761176
setup(parsed_pipx_args)
11771177
check_args(parsed_pipx_args)

0 commit comments

Comments
 (0)