CLI2: Corrected detection of MISCELLANEOUS args
This commit is contained in:
@@ -657,11 +657,11 @@ void CLI2::prepareFilter ()
|
|||||||
|
|
||||||
// All MISCELLANEOUS args appear after the command.
|
// All MISCELLANEOUS args appear after the command.
|
||||||
else if (cmd &&
|
else if (cmd &&
|
||||||
|
cmd->accepts_miscellaneous () &&
|
||||||
! cmd->accepts_modifications () &&
|
! cmd->accepts_modifications () &&
|
||||||
(foundCommand ||
|
(foundCommand ||
|
||||||
(! foundCommand &&
|
(! foundCommand &&
|
||||||
! cmd->accepts_filter () &&
|
! cmd->accepts_filter ())))
|
||||||
cmd->accepts_miscellaneous ())))
|
|
||||||
{
|
{
|
||||||
a.tag ("MISCELLANEOUS");
|
a.tag ("MISCELLANEOUS");
|
||||||
changes = true;
|
changes = true;
|
||||||
@@ -681,7 +681,7 @@ void CLI2::prepareFilter ()
|
|||||||
|
|
||||||
if (changes &&
|
if (changes &&
|
||||||
context.config.getInteger ("debug.parser") >= 3)
|
context.config.getInteger ("debug.parser") >= 3)
|
||||||
context.debug (dump ("CLI2::prepareFilter categorize"));
|
context.debug (dump ("CLI2::prepareFilter"));
|
||||||
|
|
||||||
// Remove all the syntactic sugar for FILTERs.
|
// Remove all the syntactic sugar for FILTERs.
|
||||||
lexFilterArgs ();
|
lexFilterArgs ();
|
||||||
|
|||||||
Reference in New Issue
Block a user