diff --git a/src/main.cpp b/src/main.cpp index ba91f01..09e3f4a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -45,14 +45,14 @@ fn main(const i32 argc, char* argv[]) -> i32 try { return EXIT_FAILURE; } - bool verbose = parser.get("-V").value_or(false) || parser.get("--verbose").value_or(false); - Result logLevelStr = verbose ? "debug" : parser.get("--log-level"); - { using matchit::match, matchit::is, matchit::_; using util::logging::LogLevel; using enum util::logging::LogLevel; + bool verbose = parser.get("-V").value_or(false) || parser.get("--verbose").value_or(false); + Result logLevelStr = verbose ? "debug" : parser.get("--log-level"); + LogLevel minLevel = match(logLevelStr)( is | "debug" = Debug, is | "info" = Info, @@ -69,11 +69,10 @@ fn main(const i32 argc, char* argv[]) -> i32 try { } } - const Config& config = Config::getInstance(); - - const os::SystemData data = os::SystemData(config); - { + const Config& config = Config::getInstance(); + const os::SystemData data = os::SystemData(config); + using ftxui::Element, ftxui::Screen, ftxui::Render; using ftxui::Dimension::Full, ftxui::Dimension::Fit;