Message154602
For optional flags like --foo-bar, argparse does munge the "dest" to "foo_bar", following optparse. For positional arguments, arpgarse doesn't munge things this way, but if you want the argument named "foo-bar" in help messages and "foo_bar" on the Namespace object, you just need to do something like:
add_argument('foo_bar', metavar='foo-bar', ...)
Perhaps the docs could make this clearer. |
|
Date |
User |
Action |
Args |
2012-02-29 08:11:06 | bethard | set | recipients:
+ bethard, eric.araujo, Joseph.Birr-Pixton |
2012-02-29 08:11:06 | bethard | set | messageid: <1330503066.13.0.948835326332.issue14149@psf.upfronthosting.co.za> |
2012-02-29 08:11:05 | bethard | link | issue14149 messages |
2012-02-29 08:11:05 | bethard | create | |
|