proxygen
|
#include <NestedCommandLineApp.h>
Public Member Functions | |
ProgramExit (int status, const std::string &msg=std::string()) | |
int | status () const |
Private Attributes | |
int | status_ |
Exception that commands may throw to force the program to exit cleanly with a given exit code. NestedCommandLineApp::run() catches this and makes run() print the given message on stderr (followed by a newline, unless empty; the message is only allowed when exiting with a non-zero status), and return the exit code. (Other exceptions will propagate out of run())
Definition at line 35 of file NestedCommandLineApp.h.
|
explicit |
Definition at line 42 of file NestedCommandLineApp.cpp.
References folly::NestedCommandLineApp::kHelpCommand, folly::NestedCommandLineApp::kVersionCommand, and status_.
|
inline |
Definition at line 38 of file NestedCommandLineApp.h.
Referenced by folly::NestedCommandLineApp::run().
|
private |
Definition at line 43 of file NestedCommandLineApp.h.
Referenced by ProgramExit().