subcommand_metavar is not reflected in the help message #1585
-
First Check
Commit to Help
Example Codeimport typer
config_app = typer.Typer(subcommand_metavar="PIPELINE_NAME")
@config_app.command()
def test():
pass
@config_app.command()
def train():
pass
config_app()DescriptionThe first line used metavar specified in the code, but the lower part still use Operating SystemLinux Operating System DetailsNo response Typer Version0.4.0 Python Version3.8.8 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
YuriiMotov
Sep 17, 2025
Replies: 2 comments
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
The same with pure Click app: See in the detailsimport click
@click.group(subcommand_metavar="ACTION")
def cli():
pass
@cli.command()
def start():
click.echo("Starting...")
@cli.command()
def stop():
click.echo("Stopping...")
if __name__ == "__main__":
cli()And, I'm not sure it would be correct to use the same value for the title of "Commands" section as is. By default it's plural form. I think there should be separate parameter to specify this. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tiangolo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The same with pure Click app:
See in the details
And, I'm not sure it would be correct to use the same value for the title of "Commands" section as is. By default it's plural form.
I think there should be separate parameter to specify this.
I would start from asking how it's supposed to be done with Click.