45int main(
int argc,
char *argv[])
52 if (argc > 1 &&
'-' == *argv[1])
59 <<
"No help utility has been supplied" <<
nl
63 word utilityName(argv[1]);
66 const bool oldThrowingErr =
FatalError.throwing(
true);
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void clear() noexcept
Same as reset(nullptr).
void reset(T *p=nullptr) noexcept
Delete managed object and set to new given pointer.
Class to handle errors and exceptions in a simple, consistent stream-based manner.
string message() const
The accumulated error message.
static autoPtr< helpType > New(const word &helpTypeName)
Selector.
A class for handling words, derived from Foam::string.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).
Foam::argList args(argc, argv)