Add correct uppercase variants for boolean flags

This commit is contained in:
Ines Montani 2020-06-22 00:57:28 +02:00
parent 79dd824906
commit fca3907d4e
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ def download_cli(
# fmt: off # fmt: off
ctx: typer.Context, ctx: typer.Context,
model: str = Arg(..., help="Model to download (shortcut or name)"), 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 # fmt: on
): ):
""" """

View File

@ -15,7 +15,7 @@ def info_cli(
# fmt: off # fmt: off
model: Optional[str] = Arg(None, help="Optional model name"), model: Optional[str] = Arg(None, help="Optional model name"),
markdown: bool = Opt(False, "--markdown", "-md", help="Generate Markdown for GitHub issues"), 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 # fmt: on
): ):
""" """

View File

@ -17,7 +17,7 @@ def package_cli(
input_dir: Path = Arg(..., help="Directory with model data", exists=True, file_okay=False), 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), 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), 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"), force: bool = Opt(False, "--force", "-f", "-F", help="Force overwriting existing model in output directory"),
# fmt: on # fmt: on
): ):