Raise clearer error if -Doption is invalid.

pull/1247/head
Elliott Sales de Andrade 8 years ago committed by Jussi Pakkanen
parent dbe685ec4e
commit d517bbfb5c
  1. 5
      mesonbuild/optinterpreter.py

@ -73,7 +73,10 @@ class OptionInterpreter:
self.subproject = subproject
self.cmd_line_options = {}
for o in command_line_options:
(key, value) = o.split('=', 1)
try:
(key, value) = o.split('=', 1)
except ValueError:
raise OptionException('Option {!r} must have a value separated by equals sign.'.format(o))
self.cmd_line_options[key] = value
def process(self, option_file):

Loading…
Cancel
Save