diff options
| author | Markus Unterwaditzer <markus@unterwaditzer.net> | 2015-08-16 19:23:27 +0200 |
|---|---|---|
| committer | Markus Unterwaditzer <markus@unterwaditzer.net> | 2015-08-16 19:23:27 +0200 |
| commit | 10cc4255f1d23c2e753972556c0bfec7059402a0 (patch) | |
| tree | 33610b6b6fdec3bf55946e5dcc6ff75ac94e8c0d | |
| parent | 39c1273fa4354281a789a15475fcd7587e795e27 (diff) | |
| parent | 2cb760649956d792445f6441d98dc72b2f08b3e7 (diff) | |
| download | click-4.x-maintenance.tar.gz | |
Merge branch '3.x-maintenance' into 4.x-maintenance4.x-maintenance
| -rw-r--r-- | click/decorators.py | 4 |
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 |
