Skip to content
Snippets Groups Projects
Commit 4b88b840 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

In command Entity.help (), first print __doc__ if any.

parent d7e5807b
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,10 @@ class Entity (object) :
"""
Print a short description of each command.
"""
if self.__doc__ :
print self.__doc__
print "List of commands:"
print "-----------------"
for cstr in self.commands():
ctitle=cstr+':'
for i in range(len(cstr),15):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment