This commit is contained in:
Kovid Goyal 2020-03-06 07:19:33 +05:30
parent f729985346
commit ef879bab9c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -494,6 +494,7 @@ def parse_cmdline(oc: Options, disabled: OptionSpecSeq, ans: Any, args: Optional
if state is NORMAL: if state is NORMAL:
if arg.startswith('-'): if arg.startswith('-'):
if arg == '--': if arg == '--':
leftover_args = list(dargs)
break break
parts = arg.split('=', 1) parts = arg.split('=', 1)
needs_arg = oc.needs_arg(parts[0]) needs_arg = oc.needs_arg(parts[0])