You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that using list[str] instead of list for the command parameter seems to attempt some type conversion magic resulting in a nested list so this isn't perfect. Personally I would just keep it simple and do something like this instead:
I implemented something quite similar in my cli where it takes multiple values as part of an argument in a standard unix fashion i.e separated by spaces.
Essentially extending on what @heiskane is suggesting you do for Option you can define an argument as follows:
First Check
Commit to Help
Example Code
Description
I want to pass unlimited multiple arguments to
type.option
with comma splitter like below.I want to get a list like
["hi I'm test","hello this is test"]
from the above input.Operating System
Windows
Operating System Details
Windows Version 10.0.19045.2486
Typer Version
0.7.0
Python Version
Python 3.9.1
Additional Context
No response
The text was updated successfully, but these errors were encountered: