foamDictionary: Remove the printing of the entry added or set by the -add and -set options

This commit is contained in:
Henry Weller
2018-06-01 09:55:10 +01:00
parent 1c62b8f488
commit b0a414b5d6

View File

@ -366,7 +366,7 @@ int main(int argc, char *argv[])
|| args.optionReadIfPresent("add", newValue) || args.optionReadIfPresent("add", newValue)
) )
{ {
bool overwrite = args.optionFound("set"); const bool overwrite = args.optionFound("set");
Pair<word> dAk(dictAndKeyword(scopedName)); Pair<word> dAk(dictAndKeyword(scopedName));
@ -385,16 +385,16 @@ int main(int argc, char *argv[])
changed = true; changed = true;
// Print the changed entry // Print the changed entry
const entry* entPtr = dict.lookupScopedEntryPtr // const entry* entPtr = dict.lookupScopedEntryPtr
( // (
scopedName, // scopedName,
false, // false,
true // Support wildcards // true // Support wildcards
); // );
if (entPtr) // if (entPtr)
{ // {
Info<< *entPtr; // Info<< *entPtr;
} // }
} }
else if (args.optionFound("remove")) else if (args.optionFound("remove"))
{ {