Skip to content

Commit

Permalink
Verbosity flag update
Browse files Browse the repository at this point in the history
  • Loading branch information
Asger Gitz-Johansen committed Dec 10, 2020
1 parent 155bb1f commit c6ef1cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/CLIConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CLIConfig::CLIConfig() {
"[DIR]/[FILENAME] File with queries to be verified. This flag is required for verification"} },
{ option_requirement::OPTIONAL,
{"verbosity",'v', argument_requirement::REQUIRE_ARG,
"[0-6] The level of verbosity. Default is 2"} },
"[0-6] The level of verbosity. (0: OFF | 1: CRITICAL | 2: ERROR | 3: WARN | 4: INFO | 5: DEBUG | 6: TRACE). Default is 2"} },
{ option_requirement::OPTIONAL,
{"nondeterminism-strategy", 'n', argument_requirement::REQUIRE_ARG,
"[0-3] Determines which edge to pick when encountering nondeterministic choice. Default is 0 (0: PANIC | 1: PICK_FIRST | 2: PICK_LAST | 3: PICK_RANDOM)"} },
Expand Down
2 changes: 1 addition & 1 deletion src/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int main(int argc, char** argv) {
return config.GetStatusCode();
}
if(config["verbosity"])
spdlog::set_level(static_cast<spdlog::level::level_enum>(5-config["verbosity"].as_integer()));
spdlog::set_level(static_cast<spdlog::level::level_enum>(6-config["verbosity"].as_integer()));
else
spdlog::set_level(spdlog::level::level_enum::warn);

Expand Down

0 comments on commit c6ef1cf

Please sign in to comment.