summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_help.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-08-16 09:32:10 -0400
committerBarry Warsaw2009-08-16 09:32:10 -0400
commit82affb2668ec6fa2d04fe7965a4c317eb13d8fce (patch)
treefea7c42631eda905798fedc167ff0dfe35862df3 /src/mailman/commands/cli_help.py
parent592f3d56d2fd87cf06fdeb2bb63907a82ec172b2 (diff)
downloadmailman-82affb2668ec6fa2d04fe7965a4c317eb13d8fce.tar.gz
mailman-82affb2668ec6fa2d04fe7965a4c317eb13d8fce.tar.zst
mailman-82affb2668ec6fa2d04fe7965a4c317eb13d8fce.zip
Diffstat (limited to 'src/mailman/commands/cli_help.py')
-rw-r--r--src/mailman/commands/cli_help.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mailman/commands/cli_help.py b/src/mailman/commands/cli_help.py
index 4cffaaf87..8b1b7e307 100644
--- a/src/mailman/commands/cli_help.py
+++ b/src/mailman/commands/cli_help.py
@@ -32,16 +32,16 @@ from mailman.interfaces.command import ICLISubCommand
class Help:
- """The `help` subcommand."""
+ # Lowercase, to match argparse's default --help text.
+ """show this help message and exit"""
implements(ICLISubCommand)
- def add(self, parser, subparser):
+ name = 'help'
+
+ def add(self, parser, command_parser):
"""See `ICLISubCommand`."""
self.parser = parser
- help_parser = subparser.add_parser(
- 'help', help=('show this help message and exit'))
- help_parser.set_defaults(func=self.process)
def process(self, args):
"""See `ICLISubCommand`."""