Stop parsing arguments after --

This commit is contained in:
Ben Darnell 2010-02-03 12:06:43 -08:00
parent 2036199336
commit 74f75616c1
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ def parse_command_line(args=None):
remaining = args[i:]
break
if args[i] == "--":
continue
remaining = args[i+1:]
break
arg = args[i].lstrip("-")
name, equals, value = arg.partition("=")
name = name.replace('-', '_')