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: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -216,9 +216,9 @@ And that will:
216
216
* Execute the `app()` itself, as if it was a function (instead of `typer.run`).
217
217
218
218
219
-
>**Note on Single vs Multi-command mode**:
220
-
> 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`).
221
-
> However, once you define multiple commands, you must **explicitly include the command name** (`python main.py hello Camila`).
219
+
>**Note on Single vs Multi-command mode**:
220
+
> 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`).
221
+
> However, once you define multiple commands, you must **explicitly include the command name** (`python main.py hello Camila`).
222
222
> This behavior can be surprising — see [One or Multiple Commands](https://typer.tiangolo.com/tutorial/commands/one-or-multiple/) for more details.
Copy file name to clipboardExpand all lines: docs/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -222,9 +222,9 @@ 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`).
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
228
> This behavior can be surprising — see [One or Multiple Commands](https://typer.tiangolo.com/tutorial/commands/one-or-multiple/) for more details.
0 commit comments