Message111949
> parser.add_argument('--license', action='write', message='...', file=sys.stdout)
The ability to redirect the output would be a nice addition.
> parser.add_argument('--license', action='call', callable=lambda: sys.stdout.write(message))
optparse already has a 'callable' action, I had the impression it was left out of argparse on purpose, even tough I couldn't imagine why...
Either way is fine for me. |
|
Date |
User |
Action |
Args |
2010-07-29 15:22:23 | travistouchdown | set | recipients:
+ travistouchdown, georg.brandl, bethard |
2010-07-29 15:22:23 | travistouchdown | set | messageid: <1280416943.47.0.138607185468.issue9399@psf.upfronthosting.co.za> |
2010-07-29 15:22:21 | travistouchdown | link | issue9399 messages |
2010-07-29 15:22:21 | travistouchdown | create | |
|