Go to the documentation of this file.
45 int main(
int argc,
char *argv[])
52 if (argc > 1 &&
'-' == *argv[1])
59 <<
"No help utility has been supplied" <<
nl
63 word utilityName(argv[1]);
A class for handling words, derived from Foam::string.
bool throwing() const noexcept
Return the current exception throwing state (on or off)
Ostream & endl(Ostream &os)
Add newline and flush stream.
messageStream Info
Information stream (stdout output on master, null elsewhere)
static autoPtr< helpType > New(const word &helpTypeName)
Selector.
string message() const
The accumulated error message.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void reset(autoPtr< T > &&other) noexcept
Delete managed object and set to new given pointer.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void clear() noexcept
Same as reset(nullptr)
Foam::argList args(argc, argv)
Class to handle errors and exceptions in a simple, consistent stream-based manner.