typer
typer copied to clipboard
Typer, build great CLIs. Easy to code. Based on Python type hints.
### First Check - [X] I added a very descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it....
### First Check - [X] I added a very descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it....
Adds callable support to `show_default`, allowing a `Callable[[], Union[bool, str]]` to be passed to dynamically determine the default to show in help messages. Closes https://github.com/tiangolo/typer/issues/354. Previously, `show_default` was incorrectly typed...
Fixes: https://github.com/tiangolo/typer/issues/151 Added `names` parameter, in order to user Enum names instead of values. Also for IntEnum, names are used by default, even if names is False.
### First Check - [X] I added a very descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it....
### First Check - [X] I added a very descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it....
### Describe the bug I have completions (via the `autocompletion` keyword argument in Arguments and Options) that include a colon (`:`) in the string. In zsh, these completions get split...
### First Check - [X] I added a very descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it....
### First Check - [X] I added a very descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it....
The following pull request adds support for custom `click.ParamType`s as requested in #311, with the implementation specified in https://github.com/tiangolo/typer/issues/311#issuecomment-932827651. Example here: ```python import json from typing import Any, Dict, Optional,...