Message111949
| Author |
travistouchdown |
| Recipients |
bethard, georg.brandl, travistouchdown |
| Date |
2010年07月29日.15:22:21 |
| SpamBayes Score |
0.057104878 |
| Marked as misclassified |
No |
| Message-id |
<1280416943.47.0.138607185468.issue9399@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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. |
|
History
|
|---|
| 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 |
|