Skip to content

Commit 93ff3cc

Browse files
authored
move section
1 parent 6c0bee0 commit 93ff3cc

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

docs/index.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
<style>
2-
.md-content .md-typeset h1 { display: none; }
3-
</style>
4-
51
<p align="center">
62
<a href="https://typer.tiangolo.com"><img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg#only-light" alt="Typer"></a>
7-
<!-- only-mkdocs -->
8-
<a href="https://typer.tiangolo.com"><img src="img/logo-margin/logo-margin-white-vector.svg#only-dark" alt="Typer"></a>
9-
<!-- /only-mkdocs -->
3+
104
</p>
115
<p align="center">
126
<em>Typer, build great CLIs. Easy to code. Based on Python type hints.</em>
@@ -221,12 +215,6 @@ And that will:
221215
* Add two subcommands with `@app.command()`.
222216
* Execute the `app()` itself, as if it was a function (instead of `typer.run`).
223217

224-
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.
229-
230218
### Run the upgraded example
231219

232220
Check the new help:
@@ -330,6 +318,11 @@ Goodbye Ms. Camila. Have a good day.
330318

331319
</div>
332320

321+
>**Note**:
322+
> If your app only has one command, the command name is **omitted** in usage: `python main.py Camila`.
323+
> However, when there are multiple commands, you must **explicitly include the command name**: `python main.py hello Camila`.
324+
> See [One or Multiple Commands](https://typer.tiangolo.com/tutorial/commands/one-or-multiple/) for more details.
325+
333326
### Recap
334327

335328
In summary, you declare **once** the types of parameters (*CLI arguments* and *CLI options*) as function parameters.

0 commit comments

Comments
 (0)