comparison piecrust/commands/base.py @ 103:028df35a690e 2.0.0-alpha4

Fix using `chef` outside of a website.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 15 Sep 2014 08:11:56 -0700
parents 8703be118430
children c2ca72fb7f0b
comparison
equal deleted inserted replaced
102:343befeb936f 103:028df35a690e
67 class HelpCommand(ExtendableChefCommand): 67 class HelpCommand(ExtendableChefCommand):
68 def __init__(self): 68 def __init__(self):
69 super(HelpCommand, self).__init__() 69 super(HelpCommand, self).__init__()
70 self.name = 'help' 70 self.name = 'help'
71 self.description = "Prints help about PieCrust's chef." 71 self.description = "Prints help about PieCrust's chef."
72 self.requires_website = False
72 self._topic_providers = [] 73 self._topic_providers = []
73 74
74 @property 75 @property
75 def has_topics(self): 76 def has_topics(self):
76 return len(self._topic_providers) > 0 77 return len(self._topic_providers) > 0