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

This commit is contained in:
Andrew M. Kuchling 2004-03-21 19:28:48 +00:00
parent 9303777f22
commit 56d7913bae
1 changed files with 1 additions and 1 deletions

View File

@ -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: