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
Allow parsing command line options with an arbitrary number of values. This would allow to type
cli arg1 arg2 --option 1, 2, 3
instead of the more tedious and less familiar
cli arg1 arg2 --option 1 --option 2 --option 3
This has been suggested in #2537. This request is different in that options with nargs=-1 would require an additional separator parameter, that has to be set to a non-whitespace character. This would mitigate the ambiguity issues of #2537.
I have contributed this feature to a downstream CLI library (fastapi/typer#800) and would be happy to contribute the changes to click itself if this is something that you would like to see supported. The changes essentially imply adding a few lines to
What should this feature do?
Allow parsing command line options with an arbitrary number of values. This would allow to type
instead of the more tedious and less familiar
This has been suggested in #2537. This request is different in that options with
nargs=-1
would require an additionalseparator
parameter, that has to be set to a non-whitespace character. This would mitigate the ambiguity issues of #2537.I have contributed this feature to a downstream CLI library (fastapi/typer#800) and would be happy to contribute the changes to click itself if this is something that you would like to see supported. The changes essentially imply adding a few lines to
click/src/click/core.py
Line 2267 in 4a758f5
Please comment accordingly.
The text was updated successfully, but these errors were encountered: