This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author shihai1991
Recipients paul.j3, shihai1991, xtreak
Date 2019-09-02.18:09:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567447789.4.0.32921102997.issue36267@roundup.psfhosted.org>
In-reply-to
Content
I do something such as:
p = argparse.ArgumentParser()
p.add_argument('-a', action='store_true')
p.add_argument('-b', action='store_true')
p.parse_args('-ab='.split())

thos code code jump in 1903, and the explicit_arg's value is: 'b='

1901   action_tuples.append((action, [], option_string))
1902   char = option_string[0]
1903   option_string = char + explicit_arg[0]

IMHO, we should judge this explicit_arg's value before jump this judgment statement.
History
Date User Action Args
2019-09-02 18:09:49shihai1991setrecipients: + shihai1991, paul.j3, xtreak
2019-09-02 18:09:49shihai1991setmessageid: <1567447789.4.0.32921102997.issue36267@roundup.psfhosted.org>
2019-09-02 18:09:49shihai1991linkissue36267 messages
2019-09-02 18:09:49shihai1991create