mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[Patch #900071] Be case-insensitive when removing 'usage:' string
This commit is contained in:
parent
9303777f22
commit
56d7913bae
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue