From f079f49e93a0cb1f22444a6384bbd96e5eb7f4d0 Mon Sep 17 00:00:00 2001 From: mina58 Date: Sun, 15 Sep 2024 19:46:18 +0300 Subject: [PATCH] small clarification in the tutorial docs for cli arguments --- docs/tutorial/arguments/optional.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/arguments/optional.md b/docs/tutorial/arguments/optional.md index e33b9cdc46..f2826b511e 100644 --- a/docs/tutorial/arguments/optional.md +++ b/docs/tutorial/arguments/optional.md @@ -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!}