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]);
69 utility.
reset(helpType::New(utilityName));
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void clear() noexcept
Same as reset(nullptr)
void reset(autoPtr< T > &&other) 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.
bool throwing() const noexcept
Return the current exception throwing state (on or off)
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.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
Foam::argList args(argc, argv)