summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2015-10-06 17:42:01 +0200
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2015-10-06 18:28:40 +0200
commit2987d0816ed27f1096f782ce2dbb449e49982333 (patch)
tree9ad4f53a8143bfc444e2fde74c98d228bda1c245
parentf8341333ad3ab127dd9bf215769d77ab828efb0e (diff)
downloadranger-2987d0816ed27f1096f782ce2dbb449e49982333.tar.gz
api/commands.py: Fix the doc extraction from the Actions class methods
-rw-r--r--ranger/api/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py
index 2cf96a9f..ca713d0c 100644
--- a/ranger/api/commands.py
+++ b/ranger/api/commands.py
@@ -47,7 +47,7 @@ class CommandContainer(object):
                 continue
             attribute = getattr(obj, attribute_name)
             if hasattr(attribute, '__call__'):
-                cmd = type(attribute_name, (FunctionCommand, ), dict())
+                cmd = type(attribute_name, (FunctionCommand, ), dict(__doc__=attribute.__doc__))
                 cmd._based_function = attribute
                 cmd._function_name = attribute.__name__
                 cmd._object_name = obj.__class__.__name__