CLI2: Fixed bug where only the first lexeme was used

- For quoted Lexer::Type::pair arguments, use the whole quoted arg, not merely
  the first lexeme.
This commit is contained in:
Paul Beckingham
2015-07-11 14:31:09 -04:00
parent 36814adcd2
commit d6d01ee1bf

View File

@@ -427,7 +427,7 @@ void CLI2::lexArguments ()
else if (terminated)
type = Lexer::Type::word;
A2 a (lexeme, type);
A2 a (_original_args[i], type);
if (terminated)
a.tag ("TERMINATED");
if (quoted)