Add a docstring.
This commit is contained in:
@@ -108,6 +108,12 @@ class BaseCommandMeta(type):
|
||||
|
||||
@property
|
||||
def summary(cls):
|
||||
"""
|
||||
This is used to populate the --help argument on the command line.
|
||||
|
||||
This provides a default behavior which takes the first sentence of the
|
||||
command's docstring and uses it.
|
||||
"""
|
||||
return cls.__doc__.strip().splitlines()[0].rstrip('.')
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user