Message154550
Say I have an argument with the name 'foo-bar'. Argparse accepts and parses arguments, but Namespace does not allow me to access the value.
Yes, I can use getattr or Namespace.__dict__. But that's ugly.
Yes, I can change the name of the argument, but that's not what I want in my help output.
I think it should either:
- Collapse names to valid python identifiers (optparse did this).
- Namespace should act like an object and dict. |
|
Date |
User |
Action |
Args |
2012-02-28 12:23:55 | Joseph.Birr-Pixton | set | recipients:
+ Joseph.Birr-Pixton |
2012-02-28 12:23:55 | Joseph.Birr-Pixton | set | messageid: <1330431835.85.0.549489798388.issue14149@psf.upfronthosting.co.za> |
2012-02-28 12:23:55 | Joseph.Birr-Pixton | link | issue14149 messages |
2012-02-28 12:23:55 | Joseph.Birr-Pixton | create | |
|