Skip to content
Discussion options

You must be logged in to vote

How about something like:

DatasetName = Annotated[str, Argument(help="dataset name compatible with HuggingFace datasets")]
OutputDirectory = Annotated[str, Argument(help="output directory to save the translated dataset to")]
ConfigName = Annotated[
    Optional[str],
    Option(help="optional config name for the dataset"),
]


@app.command()
def translate(
    dataset_name: DatasetName,
    output_directory: OutputDirectory,
    config_name: ConfigName = None,
    **kwargs_specific_to_this_other_cmd,
): ...


@app.command()
def answer(
    dataset_name: DatasetName,
    output_directory: OutputDirectory,
    config_name: ConfigName = None,
    **kwargs_specific_to_this_other_cmd,
): ...

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
3 participants