Skip to content

AI spam#3549

Closed
liuzemei wants to merge 1 commit into
pallets:mainfrom
liuzemei:fix-option-equals-completion
Closed

AI spam#3549
liuzemei wants to merge 1 commit into
pallets:mainfrom
liuzemei:fix-option-equals-completion

Conversation

@liuzemei
Copy link
Copy Markdown

@liuzemei liuzemei commented Jun 3, 2026

Keep the option name in shell completion results when completing values written as --option=value. Without this, bash and zsh can replace the entire current word with only the value, dropping the --option= prefix.

fixes #2847

Tests:

  • PYTHONPATH=src python -m pytest -q
  • uv run --frozen pytest tests/test_shell_completion.py -q
  • uv run --frozen ruff check src tests
  • uv run --frozen mypy src/click/shell_completion.py

@davidism davidism closed this Jun 3, 2026
@davidism davidism changed the title Fix shell completion for option values with equals AI spam Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Long option completion with = broken

3 participants