From 9e987fc079d243996995e7fac110a3bbc2d7fb1b Mon Sep 17 00:00:00 2001 From: psychocrypt Date: Fri, 29 Sep 2017 23:05:10 +0200 Subject: add help message --- xmrstak/cli/cli-miner.cpp | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'xmrstak/cli/cli-miner.cpp') diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp index 71a1af3..4846d08 100644 --- a/xmrstak/cli/cli-miner.cpp +++ b/xmrstak/cli/cli-miner.cpp @@ -60,8 +60,30 @@ void help() using namespace std; using namespace xmrstak; - cout<<"Usage: "<> userName; } auto& passwd = params::inst().poolPasswd; - if(passwd.empty()) + if(passwd.empty() && (!userSetPasswd)) { // clear everything from stdin to allow an empty password std::cin.clear(); std::cin.ignore(INT_MAX,'\n'); -- cgit v1.1