Message239248
In replay to msg238931 from paul j3 (paul.j3) *
> And specifying something other than the default 'store' action class for the arguments of the parsers doesn't make sense.
Of course it makes sense. If you e.g. want the action to be 'append' so that the subparser-name is appended to a already existing list / or to create a new list with the subparser-name as first argument.
E.g.:
parser.add_subparser(dest='foo', action='append')
parser.parse_args('bar').__dict__ == {'foo': ['bar']} |
|
Date |
User |
Action |
Args |
2015-03-25 10:49:24 | spaceone | set | recipients:
+ spaceone, berker.peksag, derks, paul.j3 |
2015-03-25 10:49:24 | spaceone | set | messageid: <1427280564.31.0.457142174933.issue23487@psf.upfronthosting.co.za> |
2015-03-25 10:49:24 | spaceone | link | issue23487 messages |
2015-03-25 10:49:24 | spaceone | create | |
|