diff options
Diffstat (limited to 'apps/uscxml-browser.cpp')
-rw-r--r-- | apps/uscxml-browser.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/uscxml-browser.cpp b/apps/uscxml-browser.cpp index cd74154..5d3b389 100644 --- a/apps/uscxml-browser.cpp +++ b/apps/uscxml-browser.cpp @@ -121,9 +121,6 @@ int main(int argc, char** argv) { #endif InterpreterOptions options = InterpreterOptions::fromCmdLine(argc, argv); - if (!options) { - InterpreterOptions::printUsageAndExit(argv[0]); - } // setup logging google::LogToStderr(); @@ -133,6 +130,13 @@ int main(int argc, char** argv) { Factory::setDefaultPluginPath(options.pluginPath); } + if (options.verbose) { + Factory::getInstance()->listComponents(); + } + if (!options) { + InterpreterOptions::printUsageAndExit(argv[0]); + } + // setup HTTP server HTTPServer::SSLConfig* sslConf = NULL; if (options.certificate.length() > 0) { @@ -149,7 +153,7 @@ int main(int argc, char** argv) { } HTTPServer::getInstance(options.httpPort, options.wsPort, sslConf); - + DebuggerServlet* debugger; if (options.withDebugger) { debugger = new DebuggerServlet(); |