add required to click.option decorator (#1397)

This commit is contained in:
Alex Khomchenko
2017-06-08 20:52:25 +02:00
committed by Matthias Kramm
parent 0709985d0c
commit 25b3a818d3

View File

@@ -103,6 +103,7 @@ def option(
help: str = None,
# Parameter
default: Any = None,
required: bool = False,
callback: Optional[_Callback] = ...,
nargs: int = None,
metavar: str = None,