![]() | Ned Batchelder : Blog | Code | Text | Site Simon's optfunc » Home : Blog : May 2009 |
Simon's optfuncFriday 29 May 2009 There's a Moore's Law effect in Python command-line processing. Every 18 months, it gets 50% easier or 50% more powerful. Simon Willison is keeping the effect going with optfunc, which introspects a function definition and creates the optparse parser needed to grab its arguments from the command line. Very clever.
tagged:
python» 1 reaction | |
Comments
CommandLineApp does something like this too:
http://www.doughellmann.com/projects/CommandLineApp/
But it both giveth and taketh away; ultimately I wound up rolling my own cheap clone that I felt was incrementally more Pythonic.
Add a comment: