From fca3907d4e761519e08b785aba958bf7846585ac Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Mon, 22 Jun 2020 00:57:28 +0200 Subject: [PATCH] Add correct uppercase variants for boolean flags --- spacy/cli/download.py | 2 +- spacy/cli/info.py | 2 +- spacy/cli/package.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/cli/download.py b/spacy/cli/download.py index 920250a61..adc8d09fa 100644 --- a/spacy/cli/download.py +++ b/spacy/cli/download.py @@ -17,7 +17,7 @@ def download_cli( # fmt: off ctx: typer.Context, model: str = Arg(..., help="Model to download (shortcut or name)"), - direct: bool = Opt(False, "--direct", "-d", help="Force direct download of name + version"), + direct: bool = Opt(False, "--direct", "-d", "-D", help="Force direct download of name + version"), # fmt: on ): """ diff --git a/spacy/cli/info.py b/spacy/cli/info.py index e6156ee6d..3ac081c14 100644 --- a/spacy/cli/info.py +++ b/spacy/cli/info.py @@ -15,7 +15,7 @@ def info_cli( # fmt: off model: Optional[str] = Arg(None, help="Optional model name"), markdown: bool = Opt(False, "--markdown", "-md", help="Generate Markdown for GitHub issues"), - silent: bool = Opt(False, "--silent", "-s", help="Don't print anything (just return)"), + silent: bool = Opt(False, "--silent", "-s", "-S", help="Don't print anything (just return)"), # fmt: on ): """ diff --git a/spacy/cli/package.py b/spacy/cli/package.py index 6ba9b0386..24d9a0a08 100644 --- a/spacy/cli/package.py +++ b/spacy/cli/package.py @@ -17,7 +17,7 @@ def package_cli( input_dir: Path = Arg(..., help="Directory with model data", exists=True, file_okay=False), output_dir: Path = Arg(..., help="Output parent directory", exists=True, file_okay=False), meta_path: Optional[Path] = Opt(None, "--meta-path", "-m", help="Path to meta.json", exists=True, dir_okay=False), - create_meta: bool = Opt(False, "--create-meta", "-c", help="Create meta.json, even if one exists"), + create_meta: bool = Opt(False, "--create-meta", "-c", "-C", help="Create meta.json, even if one exists"), force: bool = Opt(False, "--force", "-f", "-F", help="Force overwriting existing model in output directory"), # fmt: on ):