Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
"""
This example shows how to define a Typer option that accepts multiple values
using a tuple type hint.

The --user option expects exactly three values, in this order:
1. username (str)
2. coins (int)
3. is_wizard (bool)

Example usage:
python tutorial001_py39.py --user Harry 100 true
"""

import typer

app = typer.Typer()
Expand Down