Cmdline: Suppress getopt stderr msg, bubble exception upward instead
This commit is contained in:
@@ -46,7 +46,7 @@ void ComponentThread::marionetteMain(ComponentThread& self)
|
||||
catch (const std::invalid_argument& e)
|
||||
{
|
||||
std::cerr << __func__ << ": Exception occurred: " << e.what()
|
||||
<< '\n' << options.getUsage() << '\n';
|
||||
<< '\n';
|
||||
|
||||
options.printUsage = true;
|
||||
mrntt::exitCode = EXIT_FAILURE;
|
||||
|
||||
Reference in New Issue
Block a user