diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/getopt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/getopt.py b/Lib/getopt.py index 0b71d0f..7feaf9d 100644 --- a/Lib/getopt.py +++ b/Lib/getopt.py @@ -22,7 +22,7 @@ error = 'getopt error' def getopt(args, options): list = [] - while args and args[0][0] == '-' and args[0] <> '-': + while args and args[0][:1] == '-' and args[0] <> '-': if args[0] == '--': args = args[1:] break |