changeset 6:4ba6ba323871

stub out invocation of the template; this should eventually move to its own class, as we will want to subclass MakeItSoCLI, /me thinks
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 Jan 2011 16:29:10 -0800
parents b7c521f53bda
children 54df3ee47ca2
files autobot/template/template.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/template/template.py	Thu Jan 06 15:45:45 2011 -0800
+++ b/autobot/template/template.py	Thu Jan 06 16:29:10 2011 -0800
@@ -5,7 +5,7 @@
 """
 
 import sys
-from makeitso.cli import parser as optionparser
+from makeitso.cli import MakeItSoCLI
 from makeitso.template import MakeItSoTemplate
 from makeitso.template import Variable
 
@@ -28,8 +28,8 @@
     look = True
 
 def main(args=sys.argv[1:]):
-    parser = OptionParser(usage=usage)
-    options, args = parser.parse_args(args)
+    cli = MakeItSoCLI(AutobotMasterTemplate)
+    template = cli.parse()
 
 if __name__ == '__main__':
     main()