Commit 320ab961 by Alexander Popov

Show error if some cmdline option exists multiple times

parent dc68441b
......@@ -193,6 +193,8 @@ def parse_cmdline_file(parsed_options, fname):
else:
name = opt
value = '' # '' is not None
if name in parsed_options:
sys.exit(f'[!] ERROR: cmdline option "{name}" exists multiple times')
value = normalize_cmdline_options(name, value)
parsed_options[name] = value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment