Message328389
I think it's the same issue. A dash argument that is not clearly a number is interpreted as an optional's flag. With few exceptions, the parser does not examine the contents of the string
It tests the initial character, it tests for space, it tests for numbers (I'm not sure scientific notation is accepted). That's about it.
Argparse has a minimum of constrains on what is a valid flag string. For example, the following is ok:
parser.add_argument('-1,2')
# appearing the namespace as: Namespace(**{'1,2': None}) |
|
Date |
User |
Action |
Args |
2018-10-24 19:54:02 | paul.j3 | set | recipients:
+ paul.j3, lene |
2018-10-24 19:54:02 | paul.j3 | set | messageid: <1540410842.09.0.788709270274.issue35049@psf.upfronthosting.co.za> |
2018-10-24 19:54:02 | paul.j3 | link | issue35049 messages |
2018-10-24 19:54:01 | paul.j3 | create | |
|