diff --git a/src/CLI.cpp b/src/CLI.cpp index 3b01bbc9a..3945c691e 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -1552,6 +1552,7 @@ void CLI::findAttributes () // void CLI::insertJunctions () { + bool changes = false; std::vector reconstructed; std::vector ::iterator prev = _args.begin (); std::vector ::iterator a; @@ -1575,6 +1576,7 @@ void CLI::insertJunctions () opOr.tag ("FILTER"); opOr.tag ("OP"); reconstructed.push_back (opOr); + changes = true; } } @@ -1585,7 +1587,13 @@ void CLI::insertJunctions () reconstructed.push_back (*a); } - _args = reconstructed; + if (changes) + { + _args = reconstructed; + + if (context.config.getInteger ("debug.parser") >= 3) + context.debug (context.cli.dump ("CLI::analyze insertJunctions")); + } } ////////////////////////////////////////////////////////////////////////////////