Mercurial > hg > MakeItSo
diff makeitso/cli.py @ 77:059b02808efa
ensure the description exists
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 08 Jan 2011 16:21:29 -0800 |
parents | cce0da329f59 |
children | cb6c54b1adf3 |
line wrap: on
line diff
--- a/makeitso/cli.py Sat Jan 08 10:53:17 2011 -0800 +++ b/makeitso/cli.py Sat Jan 08 16:21:29 2011 -0800 @@ -22,7 +22,7 @@ # add the variables as options for variable in self.template_class.vars: description = variable.description - if (variable.default is not None) and (variable.default is not Undefined): + if (variable.default is not None) and (variable.default is not Undefined) and description is not None: description += ' [DEFAULT: %s]' % variable.default parser.add_option('--%s' % variable.name, dest=variable.name, default=variable.default,