Skip to content

Commit 9f6ce96

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)