comparison makeitso/cli.py @ 68:cce0da329f59

remove deprecated variable setting from command line front end
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 Jan 2011 11:02:29 -0800
parents 30100690ad3f
children 059b02808efa
comparison
equal deleted inserted replaced
67:a0f7bfa98755 68:cce0da329f59
13 13
14 def parser(self): 14 def parser(self):
15 """ 15 """
16 return a command line parser for the template 16 return a command line parser for the template
17 """ 17 """
18 usage = '%prog [options] output [var1=value1] [var2=value2] [...]' 18 usage = '%prog [options] output'
19 description = getattr(self.template_class, 'description', None) 19 description = getattr(self.template_class, 'description', None)
20 parser = OptionParser(usage=usage, description=description) 20 parser = OptionParser(usage=usage, description=description)
21 21
22 # add the variables as options 22 # add the variables as options
23 for variable in self.template_class.vars: 23 for variable in self.template_class.vars: