Skip to content

Commit 7b226a8

Browse files
author
Ralf Schlatterbeck
committed
Fix -c option (default class) for roundup-mailgw
Fixes [SF#1505649] "-c option for roundup-mailgw won't accept parameter + patch"
1 parent 65a7eaa commit 7b226a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/scripts/roundup_mailgw.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1515
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1616
#
17-
# $Id: roundup_mailgw.py,v 1.21 2005-07-18 01:19:57 richard Exp $
17+
# $Id: roundup_mailgw.py,v 1.22 2006-07-15 10:08:01 schlatterbeck Exp $
1818

1919
"""Command-line script stub that calls the roundup.mailgw.
2020
"""
@@ -33,7 +33,7 @@ def usage(args, message=None):
3333
if message is not None:
3434
print message
3535
print _(
36-
"""Usage: %(program)s [-v] [-c] [[-C class] -S field=value]* <instance home> [method]
36+
"""Usage: %(program)s [-v] [-c class] [[-C class] -S field=value]* <instance home> [method]
3737
3838
Options:
3939
-v: print version and exit
@@ -104,7 +104,7 @@ def main(argv):
104104
# take the argv array and parse it leaving the non-option
105105
# arguments in the args array.
106106
try:
107-
optionsList, args = getopt.getopt(argv[1:], 'vcC:S:', ['set=',
107+
optionsList, args = getopt.getopt(argv[1:], 'vc:C:S:', ['set=',
108108
'class='])
109109
except getopt.GetoptError:
110110
# print help information and exit:

0 commit comments

Comments
 (0)