From 34b9a5dbcce8979081c64da474b66fd9bfc7e22d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 27 Oct 2014 10:27:08 -0400 Subject: [PATCH] CLI - ::categorize now tags QUOTED args. --- src/CLI.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/CLI.cpp b/src/CLI.cpp index be38d90c8..4c0aef9ca 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -604,10 +604,18 @@ void CLI::categorize () else if (foundCommand && ! readOnly) { a->tag ("MODIFICATION"); + + // If the argument contains a space, it was quoted. Record that. + if (! noSpaces (raw)) + a->tag ("QUOTED"); } else if (!foundCommand || (foundCommand && readOnly)) { a->tag ("FILTER"); + + // If the argument contains a space, it was quoted. Record that. + if (! noSpaces (raw)) + a->tag ("QUOTED"); } } }