Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Commit

Permalink
Move URL spec. and env. var description to help footer.
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-m-cyr committed May 27, 2018
1 parent 1341b1e commit 575c1a8
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions ethminer/MinerAux.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,19 +210,9 @@ class MinerCLI
"Stops the miner whenever an error is encountered")
->group("Common Options");

stringstream ssHelp;
ssHelp <<
"Specify a pool URL. Can be used multiple times." << endl << endl
<< " URL takes the form: scheme://user[:password]@hostname:port[/emailaddress]." << endl
<< " for getwork use one of the following schemes:" << endl
<< " " << URI::KnownSchemes(ProtocolFamily::GETWORK) << endl
<< " for stratum use one of the following schemes: "<< endl
<< " " << URI::KnownSchemes(ProtocolFamily::STRATUM) << endl
<< " Example 1 : stratum+ssl://0x012345678901234567890234567890123.miner1@ethermine.org:5555" << endl
<< " Example 2 : stratum1+tcp://0x012345678901234567890234567890123.miner1@nanopool.org:9999/john.doe@gmail.com" << endl
<< " Example 3 : stratum1+tcp://0x012345678901234567890234567890123@nanopool.org:9999/miner1/john.doe@gmail.com" << endl;
vector<string> pools;
app.add_option("-P,--pool", pools, ssHelp.str())
app.add_option("-P,--pool", pools,
"Specify one or more pool URLs")
->group("Common Options")
->set_type_name("<url>");

Expand All @@ -249,6 +239,7 @@ class MinerCLI
->group("Common Options");

#endif
stringstream ssHelp;

#if ETH_ETHASHCL

Expand Down Expand Up @@ -405,6 +396,23 @@ class MinerCLI
->check(CLI::Range(30, 100))
->set_type_name("<n>");

ssHelp.str("");
ssHelp
<< "Pool URL Specification:" << endl
<< " URL takes the form: scheme://user[:password]@hostname:port[/emailaddress]." << endl
<< " for getwork use one of the following schemes:" << endl
<< " " << URI::KnownSchemes(ProtocolFamily::GETWORK) << endl
<< " for stratum use one of the following schemes: "<< endl
<< " " << URI::KnownSchemes(ProtocolFamily::STRATUM) << endl
<< " Example 1 : stratum+ssl://0x012345678901234567890234567890123.miner1@ethermine.org:5555" << endl
<< " Example 2 : stratum1+tcp://0x012345678901234567890234567890123.miner1@nanopool.org:9999/john.doe@gmail.com" << endl
<< " Example 3 : stratum1+tcp://0x012345678901234567890234567890123@nanopool.org:9999/miner1/john.doe@gmail.com"
<< endl << endl
<< "Environment Variables:" << endl
<< " NO_COLOR - set to any value to disable color output. Unset to re-enable color output." << endl
<< " SYSLOG - set to any value to strip time and disable color from output, for logging under systemd";
app.set_footer(ssHelp.str());

try {
app.parse(argc, argv);
if (help) {
Expand Down

0 comments on commit 575c1a8

Please sign in to comment.