Update click.option to allow for user defined kwargs. (#1950)

Click's option decorator can take a cls= argument, which allows that class to parse arbitrary arguments from the decorator.
This commit is contained in:
Dan Sully
2018-03-07 10:32:55 -08:00
committed by Jelle Zijlstra
parent df65f6ea15
commit ef87943397

View File

@@ -109,7 +109,9 @@ def option(
metavar: Optional[str] = ...,
expose_value: bool = ...,
is_eager: bool = ...,
envvar: Optional[Union[str, List[str]]] = ...
envvar: Optional[Union[str, List[str]]] = ...,
# User-defined
**kwargs: Any,
) -> _Decorator:
...