# HG changeset patch # User Jeff Hammel # Date 1294352829 28800 # Node ID 074a32920f7c272307b91a45ebc93c9adadeeee2 # Parent 728cae02a6edd05a1f5209e779e83cd6752fd19b stub for a command-line parser diff -r 728cae02a6ed -r 074a32920f7c makeitso/cli.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makeitso/cli.py Thu Jan 06 14:27:09 2011 -0800 @@ -0,0 +1,15 @@ +""" +command line parser for MakeItSo +""" + +from optparse import OptionParser + +def parser(template): + """ + return a command line parser for the template + """ + usage = '%prog [options]' + description = getattr(template, 'description', None) + parser = OptionParser(usage=usage, description=description) + return parser +