[issue40862] argparse.BooleanOptionalAction accept and silently its the const argument

2020-06-04 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +19848 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20623 ___ Python tracker ___

[issue40862] argparse.BooleanOptionalAction accept and silently its the const argument

2020-06-04 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : The action is used to store None, True or False when an argument like --foo or --no-foo is given to the cli so it has no used for this action, but it is accepted without warning: Python 3.10.0a0 (heads/bpo-wip:6e23a9c82b, Jun 4 2020, 13:41:35) [Clang 11.0.3