Mercurial > hg > MakeItSo
diff makeitso/cli.py @ 122:b2152efec89a
get the description from the docstring if applicable
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 19 Jan 2011 18:24:58 -0800 |
parents | d28cde6c942e |
children | aed8c4af5f26 |
line wrap: on
line diff
--- a/makeitso/cli.py Wed Jan 19 18:18:47 2011 -0800 +++ b/makeitso/cli.py Wed Jan 19 18:24:58 2011 -0800 @@ -16,7 +16,7 @@ return a command line parser for the template """ usage = getattr(self, 'usage', '%prog [options] output') - description = getattr(self.template_class, 'description', None) + description = self.template_class.get_description() parser = OptionParser(usage=usage, description=description) # add the variables as options