Commit 56d7913b authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[Patch #900071] Be case-insensitive when removing 'usage:' string

parent 9303777f
......@@ -1033,7 +1033,7 @@ class OptionParser (OptionContainer):
self.usage = "%prog [options]"
elif usage is SUPPRESS_USAGE:
self.usage = None
elif usage.startswith("usage: "):
elif usage.lower().startswith("usage: "):
# for backwards compatibility with Optik 1.3 and earlier
self.usage = usage[7:]
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment