diff options
| author | Barry Warsaw | 2010-03-03 22:20:40 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2010-03-03 22:20:40 -0500 |
| commit | 1bee98cb58461121af5c4482beb247c6cd503a20 (patch) | |
| tree | 1b64d4d6ff56611c234f3719128030ab1cda1126 /src | |
| parent | b235e189e6158d3daaaebd56ed0b18baf774f8d7 (diff) | |
| download | mailman-1bee98cb58461121af5c4482beb247c6cd503a20.tar.gz mailman-1bee98cb58461121af5c4482beb247c6cd503a20.tar.zst mailman-1bee98cb58461121af5c4482beb247c6cd503a20.zip | |
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 |
