T getOrDefault(const word &optName, const T &deflt) const
Get a value from the named option if present, or return default.
A class for handling words, derived from Foam::string.
static word defaultRegion
Return the default region name.
Foam::argList args(argc, argv)
Foam::word areaRegionName(args.getOrDefault< word >("area-region", Foam::polyMesh::defaultRegion))