diff --git a/docs/tutorial/multiple-values/multiple-options.md b/docs/tutorial/multiple-values/multiple-options.md index a7c5c88fb6..fd0d791bdf 100644 --- a/docs/tutorial/multiple-values/multiple-options.md +++ b/docs/tutorial/multiple-values/multiple-options.md @@ -87,3 +87,51 @@ The sum is 9.5 ``` + +## Passing multiple values in a single argument + +Many users expect to be able to pass multiple arguments with a single . +**Typer** supports this with the `multiple_separator` option for `typing.List[T]` types: + +=== "Python 3.7+" + + ```Python hl_lines="7" + {!> ../docs_src/multiple_values/multiple_options/tutorial003_an.py!} + ``` + +=== "Python 3.7+ non-Annotated" + + !!! tip + Prefer to use the `Annotated` version if possible. + + ```Python hl_lines="6" + {!> ../docs_src/multiple_values/multiple_options/tutorial003.py!} + ``` + +Check it: + +