mrow
This commit is contained in:
parent
6dfaeb9acf
commit
6bc0513124
1 changed files with 6 additions and 7 deletions
13
src/main.cpp
13
src/main.cpp
|
@ -45,14 +45,14 @@ fn main(const i32 argc, char* argv[]) -> i32 try {
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
bool verbose = parser.get<bool>("-V").value_or(false) || parser.get<bool>("--verbose").value_or(false);
|
||||
Result<String> logLevelStr = verbose ? "debug" : parser.get<String>("--log-level");
|
||||
|
||||
{
|
||||
using matchit::match, matchit::is, matchit::_;
|
||||
using util::logging::LogLevel;
|
||||
using enum util::logging::LogLevel;
|
||||
|
||||
bool verbose = parser.get<bool>("-V").value_or(false) || parser.get<bool>("--verbose").value_or(false);
|
||||
Result<String> logLevelStr = verbose ? "debug" : parser.get<String>("--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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue