Y
Hacker News
new
|
ask
|
show
|
jobs
by
dodslaser
367 days ago
This can be done using click.
1 comments
ErikBjare
367 days ago
Not with multiple=True, since it then always returns an empty list and never None, even if the default is None.
link
dodslaser
365 days ago
Yes it can. click.Context provides a get_parameter_source method that should help with that.
link
ErikBjare
362 days ago
Thank you! I recently got bitten by this limitation and will make use of get_parameter_source. I gave you credit/mentioned in the issue to restore our use of `multiple=True` behavior:
https://github.com/gptme/gptme/issues/560
link