diff makeitso/python_module/{{module}}.py @ 129:57834c2b0937

add a single-file module to the thingy
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 08 Jul 2011 10:43:48 -0700
parents
children d9201f911458
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/makeitso/python_module/{{module}}.py	Fri Jul 08 10:43:48 2011 -0700
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+
+"""
+{{module}}
+"""
+
+import sys
+from optparse import OptionParser
+
+def main(args=sys.argv[1:]):
+
+    # parse command line arguments
+    usage = '%prog [options] ...'
+    parser = OptionParser(usage=usage, description=__doc__)
+    options, args = parser.parse_args(args)
+
+if __name__ == '__main__':
+    main()