openfoam/applications/utilities/miscellaneous/foamHelp/addToolOption.H
Mark Olesen 6dcc46b187 ENH: improve error handling for foamHelp
- Catch any leading option (the incorrect location).
- Catch initialization error for cleaner result.
2018-11-21 20:18:39 +01:00

13 lines
306 B
C

argList::addArgument("tool");
argList::notes.append("Valid <tool> options include:");
for (const word& tool : helpType::dictionaryConstructorTablePtr_->sortedToc())
{
argList::notes.append(" " + tool);
}
argList::notes.append
(
"\nNOTE the <tool> must actually appear *before* any options"
);