mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: foamInfoExec: added -latestTime
This commit is contained in:
@ -46,8 +46,8 @@ int main(int argc, char *argv[])
|
||||
);
|
||||
|
||||
argList::noBanner();
|
||||
argList::noParallel();
|
||||
argList::addBoolOption("times", "list available times");
|
||||
argList::addBoolOption("latestTime", "list last time");
|
||||
argList::addBoolOption
|
||||
(
|
||||
"keywords",
|
||||
@ -75,6 +75,15 @@ int main(int argc, char *argv[])
|
||||
Info<< times[i].name() << endl;
|
||||
}
|
||||
}
|
||||
else if (args.optionFound("latestTime"))
|
||||
{
|
||||
instantList times
|
||||
(
|
||||
Foam::Time::findTimes(args.rootPath()/args.caseName())
|
||||
);
|
||||
|
||||
Info<< times.last().name() << endl;
|
||||
}
|
||||
|
||||
if (args.optionFound("dict"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user