Added --no-color command line option

`--no-color` disables colors in console output
This commit is contained in:
SChernykh
2021-10-27 16:21:56 +02:00
parent 6a002cda46
commit 1c0da4513f
4 changed files with 14 additions and 1 deletions

View File

@@ -77,6 +77,10 @@ Params::Params(int argc, char* argv[])
if (strcmp(argv[i], "--no-cache") == 0) {
m_blockCache = false;
}
if (strcmp(argv[i], "--no-color") == 0) {
log::CONSOLE_COLORS = false;
}
}
if (m_stratumAddresses.empty()) {