:memo: Update docs. Add latest docs to MkDocs/website.
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Sebastián Ramírez · committed by GitHub · parents ea0f2a6, 17b1748 · Browse files · 2 files·+23 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+23 added−3 removed
- other:+23 added−3 removed
Provenance
- Commit
9c0495b- Tree
d59f85f- Author
Sebastián Ramírez <tiangolo@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
ea0f2a6- Parent 2
17b1748
2 files changed+23 added−3 removed
modified:docs/tutorial/first-steps.md+11 added-1 removed
85 unmodified lines86 87 Hello Camila88 89 // Here "Camila" is the CLI argument90+91+// To pass a name with spaces for the same CLI argument, use quotes92+$ python main.py "Camila Gutiérrez"93+94+Hello Camila Gutiérrez95 ```96 97 </div>98 99+!!! tip100+ If you need to pass a single value that contains spaces to a *CLI argument*, use quotes (`"`) around it.101+102 ## Two CLI arguments103 96-Now extend that to have 2 arguments, `name` and `lastname`:104+Now let's say we want to have the name and last name separated.105 106+So, extend that to have 2 arguments, `name` and `lastname`:107+108 ```Python hl_lines="4 5"109 {!./src/first_steps/tutorial003.py!}110 ```111 327 unmodified linesmodified:mkdocs.yml+12 added-2 removed
36 unmodified lines37383940414243444546474849505150515253545556575859606162636465666738 unmodified lines36 unmodified lines - Command CLI Arguments: 'tutorial/commands/arguments.md' - Command CLI Options: 'tutorial/commands/options.md' - Command Help: 'tutorial/commands/help.md' - Custom Command Name: 'tutorial/commands/name.md' - Typer Callback: 'tutorial/commands/callback.md' - One or Multiple Commands: 'tutorial/commands/one-or-multiple.md' - CLI Parameter Types: - CLI Parameter Types Intro: 'tutorial/parameter-types/index.md' - Number: 'tutorial/parameter-types/number.md' - Boolean CLI Options: 'tutorial/parameter-types/bool.md' - UUID: 'tutorial/parameter-types/uuid.md' - DateTime: 'tutorial/parameter-types/datetime.md' - Enum - Choices: 'tutorial/parameter-types/enum.md' - Path: 'tutorial/parameter-types/path.md' - File: 'tutorial/parameter-types/file.md' - SubCommands: - SubCommands Intro: 'tutorial/subcommands/index.md' - SubCommands - Command Groups: - SubCommands - Command Groups - Intro: 'tutorial/subcommands/index.md' - Add Typer: 'tutorial/subcommands/add-typer.md' - SubCommands in a Single File: 'tutorial/subcommands/single-file.md' - Nested SubCommands: 'tutorial/subcommands/nested-subcommands.md' - Sub-Typer Callback Override: 'tutorial/subcommands/callback-override.md' - SubCommand Name and Help: 'tutorial/subcommands/name-and-help.md' - Multiple Values: - Multiple Values Intro: 'tutorial/multiple-values/index.md' - Multiple CLI Options: 'tutorial/multiple-values/multiple-options.md' - CLI Options with Multiple Values: 'tutorial/multiple-values/options-with-multiple-values.md' - CLI Arguments with Multiple Values: 'tutorial/multiple-values/arguments-with-multiple-values.md' - Ask with Prompt: 'tutorial/prompt.md' - Progress Bar: 'tutorial/progressbar.md' - CLI Application Directory: 'tutorial/app-dir.md' - Launching Applications: 'tutorial/launch.md'38 unmodified lines