You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -222,10 +222,10 @@ And that will:
222
222
* Execute the `app()` itself, as if it was a function (instead of `typer.run`).
223
223
224
224
225
-
>**Note on Single vs Multi-command mode**:
226
-
> If your app only has one command, Typer will automatically enter "single-command mode", meaning the command name is **omitted** in usage (`python main.py Camila`).
227
-
> However, once you define multiple commands, you must **explicitly include the command name** (`python main.py hello Camila`).
228
-
> This behavior can be surprising — see[One or Multiple Commands](https://typer.tiangolo.com/tutorial/commands/one-or-multiple/) for more details.
225
+
>**Note**:
226
+
> If your app only has one command, the command name is **omitted** in usage: `python main.py Camila`.
227
+
> However, when there are multiple commands, you must **explicitly include the command name**: `python main.py hello Camila`.
228
+
> See[One or Multiple Commands](https://typer.tiangolo.com/tutorial/commands/one-or-multiple/) for more details.
0 commit comments