From 413d585f1f561d8f84692f7714a6ff1032518624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Mon, 1 May 2023 23:15:24 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Remove=20obsolete=20references?= =?UTF-8?q?=20to=20`--install-completion`=20for=20`typer.run()`=20scripts?= =?UTF-8?q?=20(#595)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ๐Ÿ“ Remove obsolete references to --install-completion for typer.run() scripts --- docs/tutorial/arguments/default.md | 4 --- docs/tutorial/arguments/envvar.md | 6 ---- docs/tutorial/arguments/help.md | 20 ------------- docs/tutorial/arguments/optional.md | 2 -- docs/tutorial/commands/index.md | 5 ++++ docs/tutorial/first-steps.md | 30 ------------------- .../arguments-with-multiple-values.md | 2 -- .../options-with-multiple-values.md | 2 -- docs/tutorial/options/help.md | 9 ------ docs/tutorial/options/name.md | 10 ------- docs/tutorial/options/required.md | 2 -- docs/tutorial/options/version.md | 3 -- docs/tutorial/parameter-types/bool.md | 8 ----- docs/tutorial/parameter-types/datetime.md | 2 -- docs/tutorial/parameter-types/enum.md | 2 -- docs/tutorial/parameter-types/index.md | 2 -- docs/tutorial/parameter-types/number.md | 2 -- 17 files changed, 5 insertions(+), 106 deletions(-) diff --git a/docs/tutorial/arguments/default.md b/docs/tutorial/arguments/default.md index 3d5de98..c85bac0 100644 --- a/docs/tutorial/arguments/default.md +++ b/docs/tutorial/arguments/default.md @@ -41,8 +41,6 @@ Arguments: [NAME] [default: Wade Wilson] Options: - --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. // With no optional CLI argument @@ -98,8 +96,6 @@ Arguments: [NAME] [default: (dynamic)] Options: - --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. // Try it several times, it will use a random default each time diff --git a/docs/tutorial/arguments/envvar.md b/docs/tutorial/arguments/envvar.md index 79637e5..18e8f08 100644 --- a/docs/tutorial/arguments/envvar.md +++ b/docs/tutorial/arguments/envvar.md @@ -31,8 +31,6 @@ Arguments: [NAME] [env var: AWESOME_NAME;default: World] Options: - --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. // Call it without a CLI argument @@ -91,8 +89,6 @@ Arguments: [NAME] [env var: AWESOME_NAME, GOD_NAME;default: World] Options: - --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. // Try the first env var @@ -142,8 +138,6 @@ Arguments: [NAME] [default: World] Options: - --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. // But it will still be able to use it diff --git a/docs/tutorial/arguments/help.md b/docs/tutorial/arguments/help.md index 8477823..34ec101 100644 --- a/docs/tutorial/arguments/help.md +++ b/docs/tutorial/arguments/help.md @@ -41,8 +41,6 @@ Arguments: NAME The name of the user to greet [required] Options: - --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. ``` @@ -83,8 +81,6 @@ Arguments: NAME The name of the user to greet [required] Options: - --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. ``` @@ -125,8 +121,6 @@ Arguments: [NAME] Who to greet [default: World] Options: - --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. ``` @@ -165,9 +159,6 @@ Arguments: [NAME] Who to greet Options: - --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. ``` @@ -211,8 +202,6 @@ Arguments: Options: - --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. // See it shows "(Deadpoolio the amazing's name)" instead of the actual default of "Wade Wilson" @@ -270,8 +259,6 @@ Arguments: โœจusernameโœจ [default: World] Options: - --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. ``` @@ -319,11 +306,6 @@ $ python main.py --help โ”‚ age [AGE] The user's age โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ -โ”‚ --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. โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ ``` @@ -372,8 +354,6 @@ Usage: main.py [OPTIONS] [NAME] Say hi to NAME very gently, like Dirk. Options: - --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. ``` diff --git a/docs/tutorial/arguments/optional.md b/docs/tutorial/arguments/optional.md index 6b21cdc..60f1dba 100644 --- a/docs/tutorial/arguments/optional.md +++ b/docs/tutorial/arguments/optional.md @@ -139,8 +139,6 @@ Arguments: [NAME] Options: - --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. ``` diff --git a/docs/tutorial/commands/index.md b/docs/tutorial/commands/index.md index 373f118..1f7fcd9 100644 --- a/docs/tutorial/commands/index.md +++ b/docs/tutorial/commands/index.md @@ -118,6 +118,11 @@ Options: There's a little detail that is worth noting here. +Now the help shows two new *CLI options*: + +* `--install-completion` +* `--show-completion` + To get shell/tab completion, it's necessary to build a package that you and your users can install and **call directly**. So instead of running a Python script like: diff --git a/docs/tutorial/first-steps.md b/docs/tutorial/first-steps.md index 9ccccaa..1f2371f 100644 --- a/docs/tutorial/first-steps.md +++ b/docs/tutorial/first-steps.md @@ -25,14 +25,6 @@ $ python main.py --help Usage: main.py [OPTIONS] โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ -โ”‚ --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. โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ @@ -251,12 +243,6 @@ $ python main.py --help โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚ --formal --no-formal [default: no-formal] โ”‚ -โ”‚ --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. โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ @@ -316,14 +302,6 @@ $ python main.py --help โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚ --lastname TEXT โ”‚ โ”‚ --formal --no-formal [default: no-formal] โ”‚ -โ”‚ --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. โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ @@ -394,14 +372,6 @@ $ python main.py --help โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚ --lastname TEXT โ”‚ โ”‚ --formal --no-formal [default: no-formal] โ”‚ -โ”‚ --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. โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ diff --git a/docs/tutorial/multiple-values/arguments-with-multiple-values.md b/docs/tutorial/multiple-values/arguments-with-multiple-values.md index 36287a4..d55abfd 100644 --- a/docs/tutorial/multiple-values/arguments-with-multiple-values.md +++ b/docs/tutorial/multiple-values/arguments-with-multiple-values.md @@ -60,8 +60,6 @@ Arguments: [NAMES]... Select 3 characters to play with [default: Harry, Hermione, Ron] Options: - --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. // Use it with its defaults diff --git a/docs/tutorial/multiple-values/options-with-multiple-values.md b/docs/tutorial/multiple-values/options-with-multiple-values.md index 52154a7..d710966 100644 --- a/docs/tutorial/multiple-values/options-with-multiple-values.md +++ b/docs/tutorial/multiple-values/options-with-multiple-values.md @@ -79,8 +79,6 @@ Usage: main.py [OPTIONS] Options: --user <TEXT INTEGER BOOLEAN>... - --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. // Now try it diff --git a/docs/tutorial/options/help.md b/docs/tutorial/options/help.md index b1ba0e1..13df644 100644 --- a/docs/tutorial/options/help.md +++ b/docs/tutorial/options/help.md @@ -54,8 +54,6 @@ Arguments: Options: --lastname TEXT Last name of person to greet. [default: ] --formal / --no-formal Say hi formally. [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. // Now you have a help text for the --lastname and --formal CLI options ๐ŸŽ‰ @@ -103,11 +101,6 @@ $ python main.py --help โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚ --lastname TEXT Last name of person to greet. โ”‚ -โ”‚ --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. โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ•ญโ”€ Customization and Utils โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ @@ -164,8 +157,6 @@ Usage: main.py [OPTIONS] Options: --fullname TEXT - --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. // Notice there's no [default: Wade Wilson] ๐Ÿ”ฅ diff --git a/docs/tutorial/options/name.md b/docs/tutorial/options/name.md index 1a05fd5..e44e2f7 100644 --- a/docs/tutorial/options/name.md +++ b/docs/tutorial/options/name.md @@ -66,8 +66,6 @@ Usage: main.py [OPTIONS] Options: --name TEXT [required] - --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. // Try it @@ -226,8 +224,6 @@ Usage: main.py [OPTIONS] Options: -n, --name TEXT [required] - --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. // Try the short version @@ -269,8 +265,6 @@ Usage: main.py [OPTIONS] Options: -n TEXT [required] - --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. // Try it @@ -313,8 +307,6 @@ Usage: main.py [OPTIONS] Options: -n, --user-name TEXT [required] - --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. // Try it @@ -366,8 +358,6 @@ Usage: main.py [OPTIONS] Options: -n, --name TEXT [required] -f, --formal - --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. // Try the short versions diff --git a/docs/tutorial/options/required.md b/docs/tutorial/options/required.md index ff37da1..489bf3b 100644 --- a/docs/tutorial/options/required.md +++ b/docs/tutorial/options/required.md @@ -67,8 +67,6 @@ Usage: main.py [OPTIONS] NAME Options: --lastname TEXT [required] - --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. // It now tells you that --lastname is required ๐ŸŽ‰ diff --git a/docs/tutorial/options/version.md b/docs/tutorial/options/version.md index 51a3415..0e5ff71 100644 --- a/docs/tutorial/options/version.md +++ b/docs/tutorial/options/version.md @@ -43,9 +43,6 @@ Usage: main.py [OPTIONS] Options: --version --name TEXT - --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. diff --git a/docs/tutorial/parameter-types/bool.md b/docs/tutorial/parameter-types/bool.md index 0aca205..f89772d 100644 --- a/docs/tutorial/parameter-types/bool.md +++ b/docs/tutorial/parameter-types/bool.md @@ -36,8 +36,6 @@ Usage: main.py [OPTIONS] Options: --force [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. // Try it: @@ -99,8 +97,6 @@ Usage: main.py [OPTIONS] Options: --accept / --reject - --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. // Try it @@ -155,8 +151,6 @@ Usage: main.py [OPTIONS] Options: -f, --force / -F, --no-force [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. // Try with the short name -f @@ -211,8 +205,6 @@ Usage: main.py [OPTIONS] Options: / -d, --demo [default: True] - --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. // Try it diff --git a/docs/tutorial/parameter-types/datetime.md b/docs/tutorial/parameter-types/datetime.md index ddc80b6..fe1f18d 100644 --- a/docs/tutorial/parameter-types/datetime.md +++ b/docs/tutorial/parameter-types/datetime.md @@ -25,8 +25,6 @@ Arguments: BIRTH:[%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S][required] Options: - --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. // Pass a datetime diff --git a/docs/tutorial/parameter-types/enum.md b/docs/tutorial/parameter-types/enum.md index b6ba278..767c329 100644 --- a/docs/tutorial/parameter-types/enum.md +++ b/docs/tutorial/parameter-types/enum.md @@ -21,8 +21,6 @@ Usage: main.py [OPTIONS] Options: --network [simple|conv|lstm] [default: simple] - --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. // Try it diff --git a/docs/tutorial/parameter-types/index.md b/docs/tutorial/parameter-types/index.md index db78037..8a0e5df 100644 --- a/docs/tutorial/parameter-types/index.md +++ b/docs/tutorial/parameter-types/index.md @@ -33,8 +33,6 @@ Options: --age INTEGER [default: 20] --height-meters FLOAT [default: 1.89] --female / --no-female [default: True] - --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. // Call it with CLI parameters diff --git a/docs/tutorial/parameter-types/number.md b/docs/tutorial/parameter-types/number.md index d22ac3f..2bf6b42 100644 --- a/docs/tutorial/parameter-types/number.md +++ b/docs/tutorial/parameter-types/number.md @@ -35,8 +35,6 @@ Arguments: Options: --age INTEGER RANGE [default: 20] --score FLOAT RANGE [default: 0] - --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. // Pass all the CLI parameters