Skip to content
Snippets Groups Projects
Commit 2ba743b6 authored by mattijs's avatar mattijs
Browse files

ENH: foamInfoExec: added -latestTime

parent 61966615
Branches
Tags
No related merge requests found
......@@ -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"))
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment