commit | ad5e8520f3e117f45481513014548a39879d30d2 | [log] [tgz] |
---|---|---|
author | Antony Lee <anntzer.lee@gmail.com> | Sun May 01 08:04:50 2022 +0200 |
committer | GitHub <noreply@github.com> | Sat Apr 30 23:04:50 2022 -0700 |
tree | e967814e58ce8cd84ad3debc8f6ff91781991ef8 | |
parent | 9588f880a286a8cc5597188f6ab44108c8f18761 [diff] |
bpo-39716: Raise on conflicting subparser names. (GH-18605) Raise an ArgumentError when the same subparser name is added twice to an ArgumentParser. This is consistent with the (default) behavior when the same option string is added twice to an ArgumentParser. (Support for `conflict_handler="resolve"` could be considered as a followup feature, although real use cases seem even rarer than "resolve"ing option-strings.) Automerge-Triggered-By: GH:rhettinger