click
click copied to clipboard
Python composable command line interface toolkit
Right now, the click module gives us the option of using colors only through click.echo and click.secho commands. I was thinking that if we can tweak the classes inside the...
Currently, `invoke` fails with pyright in strict mode: ``` error: Type of "invoke" is partially unknown Type of "invoke" is "(cli: BaseCommand, args: str | Sequence[str] | None = None,...
Popping `cls` introduces a side-effect that prevents the reuse of the returned decorator. For example, consider the code below. The function `my_shared_argument` is a decorator that is expected to register...
- fixes # Checklist: - [ ] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change. - [ ] Add or update relevant...
setting `expose_value=false` for an argument causes crash when auto-completing. To replicate: ``` bash git clone [email protected]:pallets/click.git cd click virtualenv .env source .env/bin/activate pip install -e . echo "from click import...
## Summary When Click is used inside zipapps produced by Shiv or PEX, it displays an invalid "Usage" string. Instead of "Usage: program" it says "Usage: python -m program". I...
This change ensures that "Usage" help output is correctly displayed when Click scripts are run inside Shiv or PEX zipapps, where `__package__` is set to the empty string rather than...
Environment: - Python version: 3.8 - Click version: 8.1 The click.version_option uses the module name to get the package version : https://github.com/pallets/click/blob/08f71b08e2b7ee9b1ea27daf6d3040999fc68551/src/click/decorators.py#L410-L417 But module name and package name are not...
Hello, We're using the click.MultiCommand in a custom class and I was trying to use the built-in `click.version_option()` in click, but I would get this error anytime I tried to...