Add 'message' to click.decorators.version_option (#1845)

Click's version_option decorator allows the caller to specify the
version message. This optional string option is missing in typeshed.
This commit is contained in:
Erwin Janssen
2018-02-01 01:56:49 +01:00
committed by Jelle Zijlstra
parent 3e00a8f8e1
commit b5baedffb7

View File

@@ -174,6 +174,7 @@ def version_option(
cls: Type[Option] = ...,
# Option
prog_name: Optional[str] = ...,
message: Optional[str] = ...,
show_default: bool = ...,
prompt: Union[bool, Text] = ...,
confirmation_prompt: bool = ...,