Oops, don't print the program name twice when reporting an option

parsing error.
This commit is contained in:
david 2009-05-13 00:40:38 +00:00
parent 67c34404f2
commit e5d21d371e

View file

@ -994,7 +994,7 @@ def main():
try:
opts, input_filenames = getopt.gnu_getopt(sys.argv[1:], "hv", ["help", "text", "verbose", "xml"])
except getopt.GetoptError, e:
usage_error(u"%s: %s" % (sys.argv[0], e.msg))
usage_error(e.msg)
for o, a in opts:
if o == "-h" or o == "--help":
usage()