display available commands in ConsoleApplication's --help

This commit is contained in:
Romain Bignon 2010-04-21 00:15:37 +02:00
commit 40a118283f
2 changed files with 11 additions and 3 deletions

View file

@ -31,11 +31,11 @@ class Videoob(ConsoleApplication):
self.load_modules(ICapVideoProvider)
return self.process_command(*argv[1:])
@ConsoleApplication.command('Get video information')
def command_info(self, _id):
@ConsoleApplication.command('Get video information (accept ID or URL)')
def command_info(self, id):
results = {}
for backend in self.weboob.iter_backends():
video = backend.get_video(_id)
video = backend.get_video(id)
if video is None:
continue
rows = []