add missing docstrings to commands

This commit is contained in:
Romain Bignon 2013-07-28 00:23:31 +02:00
commit 9fe4faa6bb
3 changed files with 22 additions and 7 deletions

View file

@ -91,6 +91,12 @@ class Comparoob(ReplApplication):
CAPS = ICapPriceComparison
def do_prices(self, pattern):
"""
prices [PATTERN]
Display prices for a product. If a pattern is supplied, do not prompt
what product to compare.
"""
products = []
for backend, product in self.do('search_products', pattern):
double = False
@ -135,6 +141,11 @@ class Comparoob(ReplApplication):
return self._complete_object()
def do_info(self, _id):
"""
info ID
Get information about a product.
"""
if not _id:
print >>sys.stderr, 'This command takes an argument: %s' % self.get_command_help('info', short=True)
return 2