cli: update help text

This commit is contained in:
Sina Atalay 2024-03-29 18:04:11 +01:00
parent 2ca5cf0d24
commit d070a097a1
1 changed files with 7 additions and 7 deletions

View File

@ -421,9 +421,9 @@ class LiveProgressReporter(rich.live.Live):
) )
@handle_exceptions @handle_exceptions
def cli_command_render( def cli_command_render(
input_file_path: Annotated[ input_file_name: Annotated[
str, str,
typer.Argument(help="Path to the YAML input file as a string"), typer.Argument(help="Name of the YAML input file."),
], ],
use_local_latex: Annotated[ use_local_latex: Annotated[
bool, bool,
@ -442,13 +442,13 @@ def cli_command_render(
""" """
welcome() welcome()
input_file_path_obj = pathlib.Path(input_file_path) input_file_path = pathlib.Path(input_file_name)
output_directory = input_file_path_obj.parent / "rendercv_output" output_directory = input_file_path.parent / "rendercv_output"
with LiveProgressReporter(number_of_steps=5) as progress: with LiveProgressReporter(number_of_steps=5) as progress:
progress.start_a_step("Reading and validating the input file") progress.start_a_step("Reading and validating the input file")
data_model = dm.read_input_file(input_file_path_obj) data_model = dm.read_input_file(input_file_path)
progress.finish_the_current_step() progress.finish_the_current_step()
progress.start_a_step("Generating the LaTeX file") progress.start_a_step("Generating the LaTeX file")
@ -478,8 +478,8 @@ def cli_command_render(
), ),
) )
def cli_command_new( def cli_command_new(
full_name: Annotated[str, typer.Argument(help="Your full name")], full_name: Annotated[str, typer.Argument(help="Your full name.")],
theme: Annotated[str, typer.Option(help="The theme of the CV")] = "classic", theme: Annotated[str, typer.Option(help="The theme of the CV.")] = "classic",
): ):
"""Generate a YAML input file to get started.""" """Generate a YAML input file to get started."""
data_model = dm.get_a_sample_data_model(full_name, theme) data_model = dm.get_a_sample_data_model(full_name, theme)