Message351031
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. |
|
Date |
User |
Action |
Args |
2019-09-02 18:09:49 | shihai1991 | set | recipients:
+ shihai1991, paul.j3, xtreak |
2019-09-02 18:09:49 | shihai1991 | set | messageid: <1567447789.4.0.32921102997.issue36267@roundup.psfhosted.org> |
2019-09-02 18:09:49 | shihai1991 | link | issue36267 messages |
2019-09-02 18:09:49 | shihai1991 | create | |
|