diff makeitso/python.py @ 102:ad5fd3eb6674

template fixes....not the best, but will do
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 11 Jan 2011 16:30:52 -0800
parents e74baa8e6df4
children 32893f67f85d
line wrap: on
line diff
--- a/makeitso/python.py	Tue Jan 11 14:23:17 2011 -0800
+++ b/makeitso/python.py	Tue Jan 11 16:30:52 2011 -0800
@@ -21,7 +21,7 @@
 from optparse import OptionParser
 from template import MakeItSoTemplate
 
-class PythonPackage(MakeItSoTemplate):
+class PythonPackageTemplate(MakeItSoTemplate):
   """
   python package template
   """
@@ -39,11 +39,14 @@
   def __init__(self, **kw):
     MakeItSoTemplate.__init__(self, **kw)
 
+class PythonPackageCLI(MakeItSoCLI):
+  """
+  CLI front end for the python package template
+  """
 
-def main(args=sys.argv[:]):
-  usage = '%prog [options]'
-  
+def main(args=sys.argv[1:]):
+  cli = PythonPackageCLI(PythonPackageTemplate)
+  cli(*args)
 
 if __name__ == '__main__':
   main()  
-