aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/ui
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/ui')
-rwxr-xr-xlibbe/ui/command_line.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbe/ui/command_line.py b/libbe/ui/command_line.py
index 2dff930..ce0e55e 100755
--- a/libbe/ui/command_line.py
+++ b/libbe/ui/command_line.py
@@ -223,6 +223,8 @@ class BE (libbe.command.Command):
for name in libbe.command.commands():
module = libbe.command.get_command(name)
Class = libbe.command.get_command_class(module, name)
+ assert hasattr(Class, '__doc__') and Class.__doc__ != None, \
+ 'Command class %s missing docstring' % Class
cmdlist.append((name, Class.__doc__.splitlines()[0]))
cmdlist.sort()
longest_cmd_len = max([len(name) for name,desc in cmdlist])