mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-17 00:07:44 +00:00
Added command line option --verbose.
This commit is contained in:
parent
f8865b1498
commit
3cc8b19ca0
4 changed files with 7 additions and 0 deletions
|
@ -98,6 +98,7 @@ Logging:
|
||||||
--print-time=N print hashrate report every N seconds
|
--print-time=N print hashrate report every N seconds
|
||||||
--health-print-time=N print health report every N seconds
|
--health-print-time=N print health report every N seconds
|
||||||
--no-color disable colored output
|
--no-color disable colored output
|
||||||
|
--verbose verbose output
|
||||||
|
|
||||||
Misc:
|
Misc:
|
||||||
-c, --config=FILE load a JSON-format configuration file
|
-c, --config=FILE load a JSON-format configuration file
|
||||||
|
|
|
@ -222,6 +222,7 @@ void xmrig::BaseTransform::transform(rapidjson::Document &doc, int key, const ch
|
||||||
case IConfig::DryRunKey: /* --dry-run */
|
case IConfig::DryRunKey: /* --dry-run */
|
||||||
case IConfig::HttpEnabledKey: /* --http-enabled */
|
case IConfig::HttpEnabledKey: /* --http-enabled */
|
||||||
case IConfig::DaemonKey: /* --daemon */
|
case IConfig::DaemonKey: /* --daemon */
|
||||||
|
case IConfig::VerboseKey: /* --verbose */
|
||||||
return transformBoolean(doc, key, true);
|
return transformBoolean(doc, key, true);
|
||||||
|
|
||||||
case IConfig::ColorKey: /* --no-color */
|
case IConfig::ColorKey: /* --no-color */
|
||||||
|
@ -273,6 +274,9 @@ void xmrig::BaseTransform::transformBoolean(rapidjson::Document &doc, int key, b
|
||||||
case IConfig::DryRunKey: /* --dry-run */
|
case IConfig::DryRunKey: /* --dry-run */
|
||||||
return set(doc, "dry-run", enable);
|
return set(doc, "dry-run", enable);
|
||||||
|
|
||||||
|
case IConfig::VerboseKey: /* --verbose */
|
||||||
|
return set(doc, "verbose", enable);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,6 +87,7 @@ static const option options[] = {
|
||||||
{ "cpu-max-threads-hint", 1, nullptr, IConfig::CPUMaxThreadsKey },
|
{ "cpu-max-threads-hint", 1, nullptr, IConfig::CPUMaxThreadsKey },
|
||||||
{ "cpu-memory-pool", 1, nullptr, IConfig::MemoryPoolKey },
|
{ "cpu-memory-pool", 1, nullptr, IConfig::MemoryPoolKey },
|
||||||
{ "cpu-no-yield", 0, nullptr, IConfig::YieldKey },
|
{ "cpu-no-yield", 0, nullptr, IConfig::YieldKey },
|
||||||
|
{ "verbose", 0, nullptr, IConfig::VerboseKey },
|
||||||
# ifdef XMRIG_FEATURE_TLS
|
# ifdef XMRIG_FEATURE_TLS
|
||||||
{ "tls", 0, nullptr, IConfig::TlsKey },
|
{ "tls", 0, nullptr, IConfig::TlsKey },
|
||||||
{ "tls-fingerprint", 1, nullptr, IConfig::FingerprintKey },
|
{ "tls-fingerprint", 1, nullptr, IConfig::FingerprintKey },
|
||||||
|
|
|
@ -136,6 +136,7 @@ static inline const std::string &usage()
|
||||||
u += " --health-print-time=N print health report every N seconds\n";
|
u += " --health-print-time=N print health report every N seconds\n";
|
||||||
# endif
|
# endif
|
||||||
u += " --no-color disable colored output\n";
|
u += " --no-color disable colored output\n";
|
||||||
|
u += " --verbose verbose output\n";
|
||||||
|
|
||||||
u += "\nMisc:\n";
|
u += "\nMisc:\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue