Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic-graph-python
Commits
4b88b840
Commit
4b88b840
authored
Mar 15, 2012
by
Florent Lamiraux
Committed by
Florent Lamiraux florent@laas.fr
Mar 15, 2012
Browse files
In command Entity.help (), first print __doc__ if any.
parent
d7e5807b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dynamic_graph/entity.py
View file @
4b88b840
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment