diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/bin/mailman.py | 7 | ||||
| -rw-r--r-- | src/mailman/commands/cli_lists.py | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/mailman/bin/mailman.py b/src/mailman/bin/mailman.py index 2bec7a1d4..e8e9f38ac 100644 --- a/src/mailman/bin/mailman.py +++ b/src/mailman/bin/mailman.py @@ -47,8 +47,11 @@ def main(): Copyright 1998-2010 by the Free Software Foundation, Inc. http://www.list.org """), - formatter_class=argparse.RawDescriptionHelpFormatter, - version=MAILMAN_VERSION_FULL) + formatter_class=argparse.RawDescriptionHelpFormatter) + parser.add_argument( + '-v', '--version', + action='version', version=MAILMAN_VERSION_FULL, + help=_('Print this version string and exit')) parser.add_argument( '-C', '--config', help=_("""\ diff --git a/src/mailman/commands/cli_lists.py b/src/mailman/commands/cli_lists.py index 0882e1030..38c1823a1 100644 --- a/src/mailman/commands/cli_lists.py +++ b/src/mailman/commands/cli_lists.py @@ -133,12 +133,12 @@ class Create: self.parser = parser command_parser.add_argument( '--language', - type='unicode', metavar='CODE', help=_("""\ + type=unicode, metavar='CODE', help=_("""\ Set the list's preferred language to CODE, which must be a registered two letter language code.""")) command_parser.add_argument( '-o', '--owner', - type='unicode', action='append', default=[], + type=unicode, action='append', default=[], dest='owners', metavar='OWNER', help=_("""\ Specify a listowner email address. If the address is not currently registered with Mailman, the address is registered and |
