Refactored command line handling
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
*/
|
||||
|
||||
#include "test_cases.h"
|
||||
|
||||
#include "cli/cli_handler.h"
|
||||
#include "common/generators/plantuml/generator.h"
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
@@ -345,7 +347,17 @@ int main(int argc, char *argv[])
|
||||
if (returnCode != 0)
|
||||
return returnCode;
|
||||
|
||||
clanguml::util::setup_logging(debug_log ? 3 : 1);
|
||||
clanguml::cli::cli_handler clih;
|
||||
|
||||
std::vector<const char *> argvv = {
|
||||
"clang-uml", "--config", "./test_config_data/simple.yml"};
|
||||
|
||||
if (debug_log)
|
||||
argvv.push_back("-vvv");
|
||||
else
|
||||
argvv.push_back("-q");
|
||||
|
||||
clih.handle_options(argvv.size(), argvv.data());
|
||||
|
||||
return session.run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user