CLI2: Clarified intent for demotion

This commit is contained in:
Paul Beckingham 2015-09-04 11:55:22 -04:00
parent a82927cb54
commit 9b786de5be

View file

@ -422,7 +422,7 @@ void CLI2::handleArg0 ()
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// All arguments must be individually, and wholly recognized by the Lexer. Any // All arguments must be individually and wholly recognized by the Lexer. Any
// argument not recognized is considered a Lexer::Type::word. // argument not recognized is considered a Lexer::Type::word.
// //
// As a side effect, tags all arguments after a terminator ('--') with // As a side effect, tags all arguments after a terminator ('--') with
@ -494,11 +494,10 @@ void CLI2::lexArguments ()
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// Until the Lexer gains access to CLI2::_entities, it can only guess at whether // Scan all args for the 'add' and 'log' commands, and demote any
// a command is a DOM reference. // Lexer::Type::Tag args with sign '-' to Lexer::Type::word.
// //
// [1] Scan all MODIFICATION args for the 'add' and 'log' commands, and demote // TODO This is obsolete, given FILTER, MODIFICATION, MISCELLANEOUS.
// any Lexer::Type::Tag args with sense '-' to Lexer::Type::word.
void CLI2::demotion () void CLI2::demotion ()
{ {
bool changes = false; bool changes = false;