Context: Corrected ::dispatch determination of need for CLI2::prepareFilter
This commit is contained in:
@@ -444,7 +444,7 @@ int Context::dispatch (std::string &out)
|
|||||||
|
|
||||||
// This is something that is only needed for write commands with no other
|
// This is something that is only needed for write commands with no other
|
||||||
// filter processing.
|
// filter processing.
|
||||||
if (! c->read_only () &&
|
if (c->accepts_modifications () &&
|
||||||
! c->accepts_filter ())
|
! c->accepts_filter ())
|
||||||
{
|
{
|
||||||
cli2.prepareFilter ();
|
cli2.prepareFilter ();
|
||||||
@@ -455,7 +455,7 @@ int Context::dispatch (std::string &out)
|
|||||||
// tree.
|
// tree.
|
||||||
if (config.getBoolean ("debug") &&
|
if (config.getBoolean ("debug") &&
|
||||||
config.getInteger ("debug.parser") == 1)
|
config.getInteger ("debug.parser") == 1)
|
||||||
debug (cli2.dump ("Parse Tree"));
|
debug (cli2.dump ("Parse Tree (before command-specifіc processing)"));
|
||||||
|
|
||||||
return c->execute (out);
|
return c->execute (out);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user