Skip to content
Myr

📝 Update docs with the new --help argument (#135)

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

authored by JAYATI SHRIVASTAVA · committed by GitHub · parent ab5da80 · Browse files · 7 files+21 added−12 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: Sebastián Ramírez <tiangolo@gmail.com>

Diff stats

7 files+21 added−12 removed

  • other:+21 added−12 removed

7 files+21 added−12 removed

modified:docs/tutorial/commands/callback.md+1 added-1 removed
modified:docs/tutorial/multiple-values/arguments-with-multiple-values.md+1 added-1 removed
44 unmodified lines
4546Usage: main.py [OPTIONS] [NAMES]...4748Arguments:49 [NAMES]... [default: Harry, Hermione, Ron]49 [NAMES]... Select 3 characters to play with [default: Harry, Hermione, Ron]5051Options:52 --install-completion Install completion for the current shell.53 --show-completion Show completion for the current shell, to copy it or customize the installation.
23 unmodified lines
modified:docs/tutorial/parameter-types/bool.md+3 added-3 removed
22 unmodified lines
23// Notice there's only --force, we no longer have --no-force24Usage: main.py [OPTIONS]2526Options:27 --force27 --force [default: False]28 --install-completion Install completion for the current shell.29 --show-completion Show completion for the current shell, to copy it or customize the installation.30 --help Show this message and exit.31
88 unmodified lines
120// Notice the -f, --force / -F, --no-force121Usage: main.py [OPTIONS]122123Options:124 -f, --force / -F, --no-force124 -f, --force / -F, --no-force [default: False]125 --install-completion Install completion for the current shell.126 --show-completion Show completion for the current shell, to copy it or customize the installation.127 --help Show this message and exit.128
36 unmodified lines
165// Notice the / -d, --demo166Usage: main.py [OPTIONS]167168Options:169 / -d, --demo169 / -d, --demo [default: True]170 --install-completion Install completion for the current shell.171 --show-completion Show completion for the current shell, to copy it or customize the installation.172 --help Show this message and exit.173
17 unmodified lines
modified:docs/tutorial/parameter-types/datetime.md+4 added-1 removed
16 unmodified lines
1718```console19$ python main.py --help2021Usage: main.py [OPTIONS] [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]21Usage: main.py [OPTIONS] BIRTH:[%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]2223Arguments:24 BIRTH:[%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S][required]2526Options:27 --install-completion Install completion for the current shell.28 --show-completion Show completion for the current shell, to copy it or customize the installation.29 --help Show this message and exit.
56 unmodified lines
modified:docs/tutorial/parameter-types/enum.md+1 added-1 removed
18 unmodified lines
19// Notice the predefined values [simple|conv|lstm]20Usage: main.py [OPTIONS]2122Options:23 --network [simple|conv|lstm]23 --network [simple|conv|lstm] [default: simple]24 --install-completion Install completion for the current shell.25 --show-completion Show completion for the current shell, to copy it or customize the installation.26 --help Show this message and exit.27
41 unmodified lines
modified:docs/tutorial/parameter-types/index.md+6 added-3 removed
24 unmodified lines
2526// Notice how --age is an INTEGER and --height-meters is a FLOAT27Usage: main.py [OPTIONS] NAME2829Arguments:30 NAME [required]3132Options:30 --age INTEGER31 --height-meters FLOAT32 --female / --no-female33 --age INTEGER [default: 20]34 --height-meters FLOAT [default: 1.89]35 --female / --no-female [default: True]36 --install-completion Install completion for the current shell.37 --show-completion Show completion for the current shell, to copy it or customize the installation.38 --help Show this message and exit.39
29 unmodified lines
modified:docs/tutorial/parameter-types/number.md+5 added-2 removed
16 unmodified lines
1718// Notice the extra RANGE in the help text for --age and --score19Usage: main.py [OPTIONS] ID2021Arguments:22 ID [required]2324Options:22 --age INTEGER RANGE23 --score FLOAT RANGE25 --age INTEGER RANGE [default: 20]26 --score FLOAT RANGE [default: 0]27 --install-completion Install completion for the current shell.28 --show-completion Show completion for the current shell, to copy it or customize the installation.29 --help Show this message and exit.30
121 unmodified lines