mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: use foamVersion::api internally in etcFiles searching (#1010)
- prefer this to using the OPENFOAM define since this improves the internal consistency with the build information. The API information could change between builds without the etcFiles.C being recompiled whereas the value of Foam::foamVersion::api is force updated during the build (triggers recompilation of globals.Cver)
This commit is contained in:
@ -64,6 +64,11 @@ int main(int argc, char *argv[])
|
||||
"list",
|
||||
"List directories or files to be checked"
|
||||
);
|
||||
argList::addBoolOption
|
||||
(
|
||||
"list-all",
|
||||
"List all directories (including non-existence ones)"
|
||||
);
|
||||
argList::addArgument("file...");
|
||||
|
||||
argList::addNote
|
||||
@ -77,9 +82,15 @@ int main(int argc, char *argv[])
|
||||
// First handle no parameters
|
||||
if (args.size() == 1)
|
||||
{
|
||||
if (args.found("list"))
|
||||
if (args.found("list-all"))
|
||||
{
|
||||
fileNameList results = findEtcDirs();
|
||||
fileNameList results = etcDirs(false);
|
||||
printList(results);
|
||||
return 0;
|
||||
}
|
||||
else if (args.found("list"))
|
||||
{
|
||||
fileNameList results = etcDirs();
|
||||
printList(results);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user