gh-138697: Fix inferring dest from a single-dash long option in argparse (#138699)
* gh-138697: Fix inferring dest from a single-dash long option in argparse If a short option and a single-dash long option are passed to add_argument(), dest is now inferred from the single-dash long option. * Make double-dash options taking priority over single-dash long options. --------- Co-authored-by: Savannah Ostrowski <savannah@python.org>
S
Serhiy Storchaka committed
77cb39e0c7ef606ef68a0e09fd7c8c9c360f97f1
Parent: b338308
Committed by GitHub <noreply@github.com>
on 11/20/2025, 6:41:58 PM