Message288929
In the case detailed below, argparse.ArgumentParser improperly parses the argument string "-_":
```
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('first')
print(parser.parse_args(['-_']))
```
Expected behavior: prints Namespace(first='-_')
Actual behavior: prints usage message
The issue seems to be specific to the string "-_". Either character alone or both in the opposite order does not trigger the issue. |
|
Date |
User |
Action |
Args |
2017-03-03 21:07:15 | Max Rothman | set | recipients:
+ Max Rothman |
2017-03-03 21:07:15 | Max Rothman | set | messageid: <1488575235.56.0.838313390775.issue29715@psf.upfronthosting.co.za> |
2017-03-03 21:07:15 | Max Rothman | link | issue29715 messages |
2017-03-03 21:07:15 | Max Rothman | create | |
|