fix(shell): allow multiple spaces after -D option

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-09-05 18:07:54 -07:00
parent a8361f128f
commit d48dbccb00

View file

@ -155,6 +155,9 @@ public:
};
options set_config_option(options const & opts, char const * in) {
if (!in) return opts;
while (*in && std::isspace(*in))
++in;
std::string in_str(in);
auto pos = in_str.find('=');
if (pos == std::string::npos)