First Check
Commit to Help
Example Code
import typer
from typing import List, Tuple
app = typer.Typer()
@app.command()
def test(opts: List[Tuple[str, str]]):
...
Description
I'm converting a small Click app to Typer and hit the following issue; I can't seem to get Tuples as Multiple Multi Value Options working.
I would like to achieve the following:
python main.py test --opt "--some-arg" "value" --opt "--another-arg" "value"
This is achieved in Click with the following option:
@click.option(
"--opt",
"opts",
multiple=True,
type=(str, str),
required=False,
default=(),
help=(
"Append to current config string. Options are given in the following format: "
'[--opt "--force" "true" --opt "--overwrite" "true"]'
),
)
Operating System
Linux
Operating System Details
No response
Typer Version
0.4.1
Python Version
3.7.3
Additional Context
No response
First Check
Commit to Help
Example Code
Description
I'm converting a small Click app to Typer and hit the following issue; I can't seem to get Tuples as Multiple Multi Value Options working.
I would like to achieve the following:
This is achieved in Click with the following option:
Operating System
Linux
Operating System Details
No response
Typer Version
0.4.1
Python Version
3.7.3
Additional Context
No response