Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 7ec6dda

Browse files
committed
Add -q/--quiet option to disable logging
1 parent cf5b143 commit 7ec6dda

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cpp/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ void printUsage(char *argv[]) {
436436
<< endl;
437437
cerr << " --debug print DEBUG messages to the console"
438438
<< endl;
439+
cerr << " -q --quiet disable logging"
440+
<< endl;
439441
cerr << endl;
440442
}
441443

@@ -522,6 +524,9 @@ void parseArgs(int argc, char *argv[], RunConfig &runConfig) {
522524
} else if (arg == "--debug") {
523525
// Set DEBUG logging
524526
spdlog::set_level(spdlog::level::debug);
527+
} else if (arg == "-q" || arg == "--quiet") {
528+
// diable logging
529+
spdlog::set_level(spdlog::level::off);
525530
} else if (arg == "-h" || arg == "--help") {
526531
printUsage(argv);
527532
exit(0);

0 commit comments

Comments
 (0)