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)
|
|| 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"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user