changeset 77:059b02808efa

ensure the description exists
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 08 Jan 2011 16:21:29 -0800
parents 7909dfaef33b
children d4184945f8a8
files makeitso/cli.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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,