@@ -78,29 +78,29 @@ Run your application with the `typer` command:
7878// Run your application
7979$ typer main.py run
8080
81- // You get a nice error, you are missing NAME
82- Usage: typer [PATH_OR_MODULE] run [OPTIONS] NAME
81+ // You get a nice error, you are missing 'name'
82+ Usage: typer [PATH_OR_MODULE] run [OPTIONS] {name}
8383Try 'typer [PATH_OR_MODULE] run --help' for help.
8484╭─ Error ───────────────────────────────────────────╮
85- │ Missing argument 'NAME '. │
85+ │ Missing argument 'name '. │
8686╰───────────────────────────────────────────────────╯
8787
8888
8989// You get a --help for free
9090$ typer main.py run --help
9191
92- Usage: typer [PATH_OR_MODULE] run [OPTIONS] NAME
92+ Usage: typer [PATH_OR_MODULE] run [OPTIONS] {name}
9393
9494Run the provided Typer app.
9595
9696╭─ Arguments ───────────────────────────────────────╮
97- │ * name TEXT [default: None] [ required] |
97+ │ * name <str> [required] │
9898╰───────────────────────────────────────────────────╯
9999╭─ Options ─────────────────────────────────────────╮
100100│ --help Show this message and exit. │
101101╰───────────────────────────────────────────────────╯
102102
103- // Now pass the NAME argument
103+ // Now pass the 'name' argument
104104$ typer main.py run Camila
105105
106106Hello Camila
@@ -138,27 +138,27 @@ Now you could run it with Python directly:
138138// Run your application
139139$ python main.py
140140
141- // You get a nice error, you are missing NAME
142- Usage: main.py [OPTIONS] NAME
141+ // You get a nice error, you are missing 'name'
142+ Usage: main.py [OPTIONS] {name}
143143Try 'main.py --help' for help.
144144╭─ Error ───────────────────────────────────────────╮
145- │ Missing argument 'NAME '. │
145+ │ Missing argument 'name '. │
146146╰───────────────────────────────────────────────────╯
147147
148148
149149// You get a --help for free
150150$ python main.py --help
151151
152- Usage: main.py [OPTIONS] NAME
152+ Usage: main.py [OPTIONS] {name}
153153
154154╭─ Arguments ───────────────────────────────────────╮
155- │ * name TEXT [default: None] [ required] |
155+ │ * name <str> [required] │
156156╰───────────────────────────────────────────────────╯
157157╭─ Options ─────────────────────────────────────────╮
158158│ --help Show this message and exit. │
159159╰───────────────────────────────────────────────────╯
160160
161- // Now pass the NAME argument
161+ // Now pass the 'name' argument
162162$ python main.py Camila
163163
164164Hello Camila
@@ -236,13 +236,13 @@ $ python main.py --help
236236│ and exit. │
237237╰───────────────────────────────────────────────────╯
238238╭─ Commands ────────────────────────────────────────╮
239- │ goodbye │
240239│ hello │
240+ │ goodbye │
241241╰───────────────────────────────────────────────────╯
242242
243243// When you create a package you get ✨ auto-completion ✨ for free, installed with --install-completion
244244
245- // You have 2 subcommands (the 2 functions): goodbye and hello
245+ // You have 2 subcommands (the 2 functions): hello and goodbye
246246```
247247
248248</div >
@@ -254,10 +254,10 @@ Now check the help for the `hello` command:
254254``` console
255255$ python main.py hello --help
256256
257- Usage: main.py hello [OPTIONS] NAME
257+ Usage: main.py hello [OPTIONS] {name}
258258
259259╭─ Arguments ───────────────────────────────────────╮
260- │ * name TEXT [default: None] [ required] │
260+ │ * name <str> [required] │
261261╰───────────────────────────────────────────────────╯
262262╭─ Options ─────────────────────────────────────────╮
263263│ --help Show this message and exit. │
@@ -273,10 +273,10 @@ And now check the help for the `goodbye` command:
273273``` console
274274$ python main.py goodbye --help
275275
276- Usage: main.py goodbye [OPTIONS] NAME
276+ Usage: main.py goodbye [OPTIONS] {name}
277277
278278╭─ Arguments ───────────────────────────────────────╮
279- │ * name TEXT [default: None] [ required] │
279+ │ * name <str> [required] │
280280╰───────────────────────────────────────────────────╯
281281╭─ Options ─────────────────────────────────────────╮
282282│ --formal --no-formal [default: no-formal] │
0 commit comments