add missing docstrings to commands
This commit is contained in:
parent
8d29aa8a6d
commit
9fe4faa6bb
3 changed files with 22 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue