On 12/11/2013 01:41 PM, Mark Lawrence wrote:
On 11/12/2013 19:22, Chris Angelico wrote: There is, https://pypi.python.org/pypi/docopt/0.6.1 :)
+1 for docopt. It makes everything very clear. Just type out your usage string, and then run docopt(usage_str) on it to get a dict of your args. When I saw the video at http://docopt.org my jaw dropped. I couldn't believe all of the arg parsing junk I had been writing for even the smallest scripts. The other arg parsing libs make it easier than manually doing it, but docopt is magic.
-- - Christopher Welborn <cjwelb...@live.com> http://welbornprod.com -- https://mail.python.org/mailman/listinfo/python-list