diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-15 02:38:51 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-15 02:38:51 -0500 |
commit | 4370270929db62a32d168ae221ecc70a2d80269e (patch) | |
tree | 1d13816bc0da95739b6cec6b8d53888a87f9f156 /libbe/ui | |
parent | a1bd5432ffbf28bf2fadfed8a5b2db917f243344 (diff) | |
download | bugseverywhere-4370270929db62a32d168ae221ecc70a2d80269e.tar.gz |
Transitioned target to Command-format
Diffstat (limited to 'libbe/ui')
-rwxr-xr-x | libbe/ui/command_line.py | 2 |
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]) |