News for hackers. Stuff that matters.
Re:Python argparse has a limitation on argument groups that ... by dodslaser on Saturday June 14, 2025 @04:15PM (#44278526)
This can be done using click.
Re:Python argparse has a limitation on argument groups that ... by ErikBjare on Saturday June 14, 2025 @04:37PM (#44278663)
Not with multiple=True, since it then always returns an empty list and never None, even if the default is None.
Re:Python argparse has a limitation on argument groups that ... by dodslaser on Tuesday June 17, 2025 @06:52AM (#44297622)
Yes it can. click.Context provides a get_parameter_source method that should help with that.
Re:Python argparse has a limitation on argument groups that ... by ErikBjare on Thursday June 19, 2025 @04:10PM (#44322117)
[delayed]