Skip to content
Myr

📝 Clarify single-command vs multi-command behaviour in README (#1268)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Morgen Pronk · committed by GitHub · parent de67723 · Browse files · 2 files+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Pronk <morgenp@enerview.ai>
  • Co-authored-by: svlandeg <svlandeg@github.com>

Diff stats

2 files+4 added−0 removed

  • other:+4 added−0 removed

2 files+4 added−0 removed

modified:docs/index.md+2 added
322 unmodified lines
323```324325</div>326327**Note**: If your app only has one command, by default the command name is **omitted** in usage: `python main.py Camila`. However, when there are multiple commands, you must **explicitly include the command name**: `python main.py hello Camila`. See [One or Multiple Commands](https://typer.tiangolo.com/tutorial/commands/one-or-multiple/) for more details.328329### Recap330331In summary, you declare **once** the types of parameters (*CLI arguments* and *CLI options*) as function parameters.332
60 unmodified lines
modified:README.md+2 added
316 unmodified lines
317```318319</div>320321**Note**: If your app only has one command, by default the command name is **omitted** in usage: `python main.py Camila`. However, when there are multiple commands, you must **explicitly include the command name**: `python main.py hello Camila`. See [One or Multiple Commands](https://typer.tiangolo.com/tutorial/commands/one-or-multiple/) for more details.322323### Recap324325In summary, you declare **once** the types of parameters (*CLI arguments* and *CLI options*) as function parameters.326
60 unmodified lines