summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/optparse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/optparse.py b/Lib/optparse.py
index b89a6ce..bacef0f 100644
--- a/Lib/optparse.py
+++ b/Lib/optparse.py
@@ -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: