mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: provide operator[] for accessing argList options.
- operator[] with label -> get args at index - operator[] with word -> get named option
This commit is contained in:
@ -94,11 +94,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
for (label count = 0; count < repeat; ++count)
|
||||
{
|
||||
IFstream is(args.option("file"));
|
||||
IFstream is(args["file"]);
|
||||
|
||||
if (count == 0)
|
||||
{
|
||||
Info<< "tokenizing file: " << args.option("file") << nl;
|
||||
Info<< "tokenizing file: " << args["file"] << nl;
|
||||
}
|
||||
|
||||
while (is.good())
|
||||
|
||||
Reference in New Issue
Block a user