Print the full documentation on error / add documentation

This commit is contained in:
Florent 2014-01-13 10:16:58 +01:00
commit 4d0a8dfa19

View file

@ -218,7 +218,7 @@ class Boobcoming(ReplApplication):
if line:
_date = parse_date(line)
if not _date:
print >>sys.stderr, 'Invalid argument: %s' % self.get_command_help('list', short=True)
print >>sys.stderr, 'Invalid argument: %s' % self.get_command_help('list')
return 2
date_from = datetime.combine(_date, time.min)
@ -312,6 +312,7 @@ class Boobcoming(ReplApplication):
"""
attends ID1 [ID2 ID3 ...]
Register as participant of an event.
ID is the identifier of the event.
"""
if not line:
@ -328,6 +329,7 @@ class Boobcoming(ReplApplication):
"""
unattends ID1 [ID2 ID3 ...]
Unregister you participation for an event.
ID is the identifier of the event.
"""