Commits

Anonymous committed f9c07ee

Bugfix: it choked on an empty argument!

Comments (0)

Files changed (1)

 
 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