Stop parsing arguments after --
This commit is contained in:
parent
2036199336
commit
74f75616c1
|
@ -107,7 +107,8 @@ def parse_command_line(args=None):
|
||||||
remaining = args[i:]
|
remaining = args[i:]
|
||||||
break
|
break
|
||||||
if args[i] == "--":
|
if args[i] == "--":
|
||||||
continue
|
remaining = args[i+1:]
|
||||||
|
break
|
||||||
arg = args[i].lstrip("-")
|
arg = args[i].lstrip("-")
|
||||||
name, equals, value = arg.partition("=")
|
name, equals, value = arg.partition("=")
|
||||||
name = name.replace('-', '_')
|
name = name.replace('-', '_')
|
||||||
|
|
Loading…
Reference in New Issue