-
First Check
Commit to Help
Example Codeimport typer
from typing_extensions import Annotated
app = typer.Typer(rich_markup_mode="rich")
@app.command()
def hello(
name: Annotated[
str, typer.Option(help="The [bold]cool[/bold] name of the [green]user[/green]")
],
):
print(f"Hello {name}")
if __name__ == "__main__":
app() Description
The output is: # `hello`
**Usage**:
```console
$ hello [OPTIONS]
```
**Options**:
* `--name TEXT`: The [bold]cool[/bold] name of the [green]user[/green] [required]
* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit. It includes the sections with Rendered Markdown
|
Beta Was this translation helpful? Give feedback.
Answered by
tiangolo
May 23, 2024
Replies: 1 comment
-
This is being tracked in #819 |
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
This is being tracked in #819