Skip to content

Commit

Permalink
Rephrase
Browse files Browse the repository at this point in the history
  • Loading branch information
svlandeg committed Sep 10, 2024
1 parent 729182b commit 014882c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial/arguments/optional.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ name: str

Now, finally what we came for, an optional *CLI argument*.

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`:

```Python hl_lines="7"
{!../docs_src/arguments/optional/tutorial002_an.py!}
Expand Down

0 comments on commit 014882c

Please sign in to comment.