Hacker News new | ask | show | jobs
by dodslaser 367 days ago
This can be done using click.
1 comments

Not with multiple=True, since it then always returns an empty list and never None, even if the default is None.
Yes it can. click.Context provides a get_parameter_source method that should help with that.
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