Bugfix: it choked on an empty argument!
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 @@
 
 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