diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-10 12:53:08 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-10 12:53:08 +0000 |
commit | c45a3e8257c72f987b1747a93837a9db61455a5c (patch) | |
tree | f2f0a2bb977d580dffacd64eacc01a903fdc835f /alot/commands/__init__.py | |
parent | 5f332b350b36e87d5dc00db68bc6a62562dd2af5 (diff) | |
parent | 92a7b0c4ee05f86f3ecf2901747eadc1f0b85103 (diff) |
Merge branch 'master' into docs
Diffstat (limited to 'alot/commands/__init__.py')
-rw-r--r-- | alot/commands/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/commands/__init__.py b/alot/commands/__init__.py index d369de1b..6cbc3f18 100644 --- a/alot/commands/__init__.py +++ b/alot/commands/__init__.py @@ -137,7 +137,8 @@ class registerCommand(object): self.arguments = arguments def __call__(self, klass): - argparser = CommandArgumentParser(description=self.help, + helpstring = self.help or klass.__doc__ + argparser = CommandArgumentParser(description=helpstring, usage=self.usage, prog=self.name, add_help=False) for args, kwargs in self.arguments: |