diff makeitso/template.py @ 62:30100690ad3f

display defaults with command line --help option
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 Jan 2011 17:49:40 -0800
parents 112bf081148c
children b91133e3b02d
line wrap: on
line diff
--- a/makeitso/template.py	Thu Jan 06 17:14:22 2011 -0800
+++ b/makeitso/template.py	Thu Jan 06 17:49:40 2011 -0800
@@ -9,6 +9,8 @@
 
 class Undefined(object):
     """marker class for variables"""
+    def __int__(self):
+        return 0
 Undefined = Undefined() # singleton
 
 class Variable(object):
@@ -93,11 +95,15 @@
             assert os.path.exists(template)
 
     def missing(self, **variables):
+        missing = set([])
         if self.look:
             pass
         else:
-            if self.usedefaults:
-                pass
+            for var in self.vars:
+                if self.usedefaults:
+                    pass
+                else:
+                    pass
 
     def pre(self, **variables):
         """do stuff before interpolation"""