Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
Commitad5e852
authored
Raise an ArgumentError when the same subparser name is added twice to anArgumentParser. This is consistent with the (default) behavior when thesame option string is added twice to an ArgumentParser.(Support for `conflict_handler="resolve"` could be considered as afollowup feature, although real use cases seem even rarer than"resolve"ing option-strings.)Automerge-Triggered-By: GH:rhettinger
1 parent9588f88 commitad5e852
File tree
3 files changed
+23
-0
lines changed- Lib
- test
- Misc/NEWS.d/next/Library
3 files changed
+23
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1171 | 1171 |
| |
1172 | 1172 |
| |
1173 | 1173 |
| |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
1174 | 1181 |
| |
1175 | 1182 |
| |
1176 | 1183 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4804 | 4804 |
| |
4805 | 4805 |
| |
4806 | 4806 |
| |
| 4807 | + | |
| 4808 | + | |
| 4809 | + | |
| 4810 | + | |
| 4811 | + | |
| 4812 | + | |
| 4813 | + | |
| 4814 | + | |
| 4815 | + | |
| 4816 | + | |
| 4817 | + | |
| 4818 | + | |
| 4819 | + | |
4807 | 4820 |
| |
4808 | 4821 |
| |
4809 | 4822 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + |
0 commit comments
Comments
(0)