Message156306
| Author | bethard |
|---|---|
| Recipients | bethard, jakub, tshepang |
| Date | 2012-03-19.01:51:54 |
| SpamBayes Score | 1.8454077e-05 |
| Marked as misclassified | No |
| Message-id | <1332121915.41.0.304958918809.issue14365@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The problem is basically that _parse_known_args calls _parse_optional to determine whether something is an optional or a positional. But _parse_optional only checks "if arg_string in self._option_string_actions", that is, if the string can be found in the main parser actions. So either this method needs to check the subparser actions, or the "if arg_string in self._option_string_actions" stuff needs to be delayed until the subparser. Neither of these seems like a simple change, but I agree it's a bug. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2012-03-19 01:51:55 | bethard | set | recipients: + bethard, tshepang, jakub |
| 2012-03-19 01:51:55 | bethard | set | messageid: <1332121915.41.0.304958918809.issue14365@psf.upfronthosting.co.za> |
| 2012-03-19 01:51:54 | bethard | link | issue14365 messages |
| 2012-03-19 01:51:54 | bethard | create | |