Skip to content
Snippets Groups Projects
Commit a0d4d61a authored by Nicolas Mansard's avatar Nicolas Mansard Committed by Nicolas Mansard
Browse files

With the doc.

parent 9a7ca644
No related branches found
No related tags found
No related merge requests found
...@@ -77,18 +77,26 @@ class Entity (object) : ...@@ -77,18 +77,26 @@ class Entity (object) :
def displaySignals(self) : def displaySignals(self) :
""" """
Write the list of signals into standard output: temporary. Print the list of signals into standard output: temporary.
""" """
wrap.entity_display_signals(self.obj) wrap.entity_display_signals(self.obj)
def signals(self) : def signals(self) :
"""
Alias of displaySignals to reduce verbosity. To be confirmed.
"""
self.displaySignals() self.displaySignals()
def commands(self): def commands(self):
"""
Return the list of commands.
"""
return wrap.entity_list_commands(self.obj) return wrap.entity_list_commands(self.obj)
def globalHelp(self): def globalHelp(self):
"""
Print a short description of each command.
"""
for cstr in self.commands(): for cstr in self.commands():
ctitle=cstr+':' ctitle=cstr+':'
for i in range(len(cstr),15): for i in range(len(cstr),15):
...@@ -99,6 +107,10 @@ class Entity (object) : ...@@ -99,6 +107,10 @@ class Entity (object) :
break break
def help( self,comm=None ): def help( self,comm=None ):
"""
With no arg, print the global help. With arg the name of
a specific command, print the help associated to the command.
"""
if comm is None: if comm is None:
self.globalHelp() self.globalHelp()
else: else:
......
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