When you try to use the search feature in a command that has a click.option without a help text, you'll get an exception as soon as you type a letter in the search bar:
AttributeError: 'NoneType' object has no attribute 'casefold'
Thanks for the report, this is fixed in main, so it should work again in the next release (likely this week). Feel free to re-open if you're still having issues after the release :)
Description
When you try to use the search feature in a command that has a
click.option
without ahelp
text, you'll get an exception as soon as you type a letter in the search bar:Full traceback:
To reproduce
Here's a minimal reproducible example:
requirements.txt
to install:cli.py
Steps:
python cli.py tui
Adding a help text solves the issue:
Demo