Skip to content

Commit b5baedf

Browse files
ErwinJanssenJelleZijlstra
authored andcommitted
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.
1 parent 3e00a8f commit b5baedf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

third_party/2and3/click/decorators.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def version_option(
174174
cls: Type[Option] = ...,
175175
# Option
176176
prog_name: Optional[str] = ...,
177+
message: Optional[str] = ...,
177178
show_default: bool = ...,
178179
prompt: Union[bool, Text] = ...,
179180
confirmation_prompt: bool = ...,

0 commit comments

Comments
 (0)