Message154112
| Author |
eric.araujo |
| Recipients |
Daniel.Walsh, bethard, dmalcolm, eric.araujo |
| Date |
2012年02月24日.04:50:58 |
| SpamBayes Score |
2.7686872e-05 |
| Marked as misclassified |
No |
| Message-id |
<1330059059.85.0.142135036391.issue14102@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Are you aware of help2man? It can transmogrify the output of "your-program-that-uses-argparse --help" to a man page. Another solution is to use docutils’ rst2man to convert some documentation file to the man format.
On the other hand, this blog post contains code implementing a custom optparse formatter for man pages, which could probably be adapted for argparse easily, so it does not look hard to implement. (Note that the code has no licensing information.)
Steven, what do you think? Too specialized for the stdlib or small, useful new feature? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年02月24日 04:51:00 | eric.araujo | set | recipients:
+ eric.araujo, bethard, dmalcolm, Daniel.Walsh |
| 2012年02月24日 04:50:59 | eric.araujo | set | messageid: <1330059059.85.0.142135036391.issue14102@psf.upfronthosting.co.za> |
| 2012年02月24日 04:50:59 | eric.araujo | link | issue14102 messages |
| 2012年02月24日 04:50:58 | eric.araujo | create |
|