We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 729182b commit 014882cCopy full SHA for 014882c
1 file changed
docs/tutorial/arguments/optional.md
@@ -113,7 +113,7 @@ name: str
113
114
Now, finally what we came for, an optional *CLI argument*.
115
116
-To make a *CLI argument* optional, use `Optional[X]` type for `Annotated` and provide a "default" value for function parameter, for example `None`:
+To make a *CLI argument* optional, use `typer.Argument()` and make sure to provide a "default" value, for example `None`:
117
118
```Python hl_lines="7"
119
{!../docs_src/arguments/optional/tutorial002_an.py!}
0 commit comments