cli: add more shortnames and improve help

This commit is contained in:
Sina Atalay 2024-06-01 15:45:49 +03:00
parent 890c6b835b
commit 3ea90bf8ba
1 changed files with 10 additions and 0 deletions

View File

@ -671,6 +671,14 @@ def cli_command_render(
help="Don't generate the PNG file.", help="Don't generate the PNG file.",
), ),
] = False, ] = False,
_: Annotated[ # This is a dummy argument for the help message.
Optional[str],
typer.Option(
"--YAMLLOCATION",
help="Overrides the value of YAMLLOCATION. For example,"
' [cyan bold]--cv.phone "123-456-7890"[/cyan bold].',
),
] = None,
extra_data_model_override_argumets: typer.Context = None, extra_data_model_override_argumets: typer.Context = None,
): ):
"""Generate a $\\LaTeX$ CV from a YAML input file.""" """Generate a $\\LaTeX$ CV from a YAML input file."""
@ -802,6 +810,7 @@ def cli_command_new(
bool, bool,
typer.Option( typer.Option(
"--dont-create-theme-source-files", "--dont-create-theme-source-files",
"-nolatex",
help="Don't create theme source files.", help="Don't create theme source files.",
), ),
] = False, ] = False,
@ -809,6 +818,7 @@ def cli_command_new(
bool, bool,
typer.Option( typer.Option(
"--dont-create-markdown-source-files", "--dont-create-markdown-source-files",
"-nomd",
help="Don't create the Markdown source files.", help="Don't create the Markdown source files.",
), ),
] = False, ] = False,