Skip to content

Commit

Permalink
small clarification in the tutorial docs for cli arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mina58 committed Sep 15, 2024
1 parent 1823714 commit f079f49
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 `typer.Argument()` and pass a different "default" as the first parameter to `typer.Argument()`, for example `None`:
To make a *CLI argument* optional, use `typer.Argument()` and pass a defualt value for your function's argument, for example `None`:

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

0 comments on commit f079f49

Please sign in to comment.