From d6d01ee1bf181d0ba15c55b6821f4a917e296e3d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 11 Jul 2015 14:31:09 -0400 Subject: [PATCH] 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. --- src/CLI2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CLI2.cpp b/src/CLI2.cpp index 182a1d328..15e178f83 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -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)