mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
foamDictionary: Remove the printing of the entry added or set by the -add and -set options
This commit is contained in:
@ -366,7 +366,7 @@ int main(int argc, char *argv[])
|
||||
|| args.optionReadIfPresent("add", newValue)
|
||||
)
|
||||
{
|
||||
bool overwrite = args.optionFound("set");
|
||||
const bool overwrite = args.optionFound("set");
|
||||
|
||||
Pair<word> dAk(dictAndKeyword(scopedName));
|
||||
|
||||
@ -385,16 +385,16 @@ int main(int argc, char *argv[])
|
||||
changed = true;
|
||||
|
||||
// Print the changed entry
|
||||
const entry* entPtr = dict.lookupScopedEntryPtr
|
||||
(
|
||||
scopedName,
|
||||
false,
|
||||
true // Support wildcards
|
||||
);
|
||||
if (entPtr)
|
||||
{
|
||||
Info<< *entPtr;
|
||||
}
|
||||
// const entry* entPtr = dict.lookupScopedEntryPtr
|
||||
// (
|
||||
// scopedName,
|
||||
// false,
|
||||
// true // Support wildcards
|
||||
// );
|
||||
// if (entPtr)
|
||||
// {
|
||||
// Info<< *entPtr;
|
||||
// }
|
||||
}
|
||||
else if (args.optionFound("remove"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user