argList: addition of fileHandler option moved to argList.C

Patch contributed by Timo Niemi, VTT.
Resolves bug-report https://bugs.openfoam.org/view.php?id=2645
This commit is contained in:
Henry Weller 2017-08-03 10:42:24 +01:00 committed by Andrew Heather
parent 7cad29f7c8
commit 36b32d242b
2 changed files with 7 additions and 16 deletions

View File

@ -89,6 +89,13 @@ Foam::argList::initValidTables::initValidTables()
"do not execute functionObjects"
);
argList::addOption
(
"fileHandler",
"handler",
"override the fileHandler"
);
Pstream::addValidParOptions(validParOptions);
}

View File

@ -43,22 +43,6 @@ namespace Foam
defineTypeNameAndDebug(fileOperation, 0);
defineRunTimeSelectionTable(fileOperation, word);
class addArgsOptions
{
public:
addArgsOptions()
{
argList::addOption
(
"fileHandler",
"handler",
"override the fileHandler"
);
}
};
addArgsOptions intObj;
word fileOperation::defaultFileHandler
(
debug::optimisationSwitches().lookupOrAddDefault