📝 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
Provenance
- Commit
39a6552- Tree
6b28431- Author
JAYATI SHRIVASTAVA <gaurijove@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
ab5da80
7 files changed+21 added−12 removed
modified:docs/tutorial/commands/callback.md+1 added-1 removed
35 unmodified lines36373839404041424344141 unmodified linesExpand all35 unmodified lines
Manage users in the awesome CLI app.
Options: --verbose / --no-verbose --verbose / --no-verbose [default: False] --install-completion Install completion for the current shell. --show-completion Show completion for the current shell, to copy it or customize the installation. --help Show this message and exit.
141 unmodified linesExpand allmodified:docs/tutorial/multiple-values/arguments-with-multiple-values.md+1 added-1 removed
44 unmodified lines45 46 Usage: main.py [OPTIONS] [NAMES]...47 48 Arguments:49- [NAMES]... [default: Harry, Hermione, Ron]49+ [NAMES]... Select 3 characters to play with [default: Harry, Hermione, Ron]50 51 Options: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 linesmodified:docs/tutorial/parameter-types/bool.md+3 added-3 removed
22 unmodified lines23 // Notice there's only --force, we no longer have --no-force24 Usage: main.py [OPTIONS]25 26 Options: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 lines120 // Notice the -f, --force / -F, --no-force121 Usage: main.py [OPTIONS]122 123 Options: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 lines165 // Notice the / -d, --demo166 Usage: main.py [OPTIONS]167 168 Options: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 linesmodified:docs/tutorial/parameter-types/datetime.md+4 added-1 removed
16 unmodified lines17 18 ```console19 $ python main.py --help20 21-Usage: main.py [OPTIONS] [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]21+Usage: main.py [OPTIONS] BIRTH:[%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]22 23+Arguments:24+ BIRTH:[%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S][required]25+26 Options: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 linesmodified:docs/tutorial/parameter-types/enum.md+1 added-1 removed
18 unmodified lines19 // Notice the predefined values [simple|conv|lstm]20 Usage: main.py [OPTIONS]21 22 Options: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 linesmodified:docs/tutorial/parameter-types/index.md+6 added-3 removed
24 unmodified lines25 26 // Notice how --age is an INTEGER and --height-meters is a FLOAT27 Usage: main.py [OPTIONS] NAME28 29+Arguments:30+ NAME [required]31+32 Options: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 linesmodified:docs/tutorial/parameter-types/number.md+5 added-2 removed
16 unmodified lines17 18 // Notice the extra RANGE in the help text for --age and --score19 Usage: main.py [OPTIONS] ID20 21+Arguments:22+ ID [required]23+24 Options: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