Add hidden and deprecated click.Command options (#2778)

This commit is contained in:
Andrew Svetlov
2019-02-03 05:05:53 -05:00
committed by Sebastian Rittau
parent 3eb66ba633
commit c45c0635c1
2 changed files with 9 additions and 1 deletions

View File

@@ -189,6 +189,8 @@ class Command(BaseCommand):
short_help: Optional[str]
options_metavar: str
add_help_option: bool
hidden: bool
deprecated: bool
def __init__(
self,
@@ -200,7 +202,9 @@ class Command(BaseCommand):
epilog: Optional[str] = ...,
short_help: Optional[str] = ...,
options_metavar: str = ...,
add_help_option: bool = ...
add_help_option: bool = ...,
hidden: bool = ...,
deprecated: bool = ...,
) -> None:
...

View File

@@ -41,6 +41,8 @@ def command(
short_help: Optional[str] = ...,
options_metavar: str = ...,
add_help_option: bool = ...,
hidden: bool = ...,
deprecated: bool = ...,
) -> Callable[[Callable], Command]:
...
@@ -64,6 +66,8 @@ def group(
short_help: Optional[str] = ...,
options_metavar: str = ...,
add_help_option: bool = ...,
hidden: bool = ...,
deprecated: bool = ...,
# User-defined
**kwargs: Any,
) -> Callable[[Callable], Group]: