summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus@unterwaditzer.net>2015-08-16 19:23:27 +0200
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2015-08-16 19:23:27 +0200
commit10cc4255f1d23c2e753972556c0bfec7059402a0 (patch)
tree33610b6b6fdec3bf55946e5dcc6ff75ac94e8c0d
parent39c1273fa4354281a789a15475fcd7587e795e27 (diff)
parent2cb760649956d792445f6441d98dc72b2f08b3e7 (diff)
downloadclick-4.x-maintenance.tar.gz
Merge branch '3.x-maintenance' into 4.x-maintenance4.x-maintenance
-rw-r--r--click/decorators.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/click/decorators.py b/click/decorators.py
index e3184ba..1174f47 100644
--- a/click/decorators.py
+++ b/click/decorators.py
@@ -111,7 +111,9 @@ def command(name=None, cls=None, **attrs):
if cls is None:
cls = Command
def decorator(f):
- return _make_command(f, name, attrs, cls)
+ cmd = _make_command(f, name, attrs, cls)
+ cmd.__doc__ = f.__doc__
+ return cmd
return decorator