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.
Comments
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: