Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
azure-cloud-mining-script
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
azure-cloud-mining-script
Commits
9e987fc0
There was an error fetching the commit references. Please try again later.
Commit
9e987fc0
authored
7 years ago
by
psychocrypt
Browse files
Options
Downloads
Patches
Plain Diff
add help message
parent
21463c59
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xmrstak/cli/cli-miner.cpp
+27
-3
27 additions, 3 deletions
xmrstak/cli/cli-miner.cpp
with
27 additions
and
3 deletions
xmrstak/cli/cli-miner.cpp
+
27
−
3
View file @
9e987fc0
...
...
@@ -60,8 +60,30 @@ void help()
using
namespace
std
;
using
namespace
xmrstak
;
cout
<<
"Usage: "
<<
params
::
inst
().
binaryName
<<
" [OPTIONS] [CONFIG FILE]"
<<
endl
;
cout
<<
"Usage: "
<<
params
::
inst
().
binaryName
<<
" [OPTION]... [CONFIGFILE]"
<<
endl
;
cout
<<
" "
<<
endl
;
cout
<<
" CONFIGFILE common miner configuration file"
<<
endl
;
cout
<<
" -h, --help show this help"
<<
endl
;
#ifndef CONF_NO_CPU
cout
<<
" --noCPU disable the CPU miner backend"
<<
endl
;
cout
<<
" --cpu FILE CPU backend miner config file"
<<
endl
;
#endif
#ifndef CONF_NO_OPENCL
cout
<<
" --noAMD disable the AMD miner backend"
<<
endl
;
cout
<<
" --amd FILE AMD backend miner config file"
<<
endl
;
#endif
#ifndef CONF_NO_CUDA
cout
<<
" --noNVIDIA disable the NVIDIA miner backend"
<<
endl
;
cout
<<
" --nvidia FILE NVIDIA backend miner config file"
<<
endl
;
#endif
cout
<<
" "
<<
endl
;
cout
<<
"The Following options temporary overwrites the config file settings:"
<<
endl
;
cout
<<
" -o, --url URL pool url and port, e.g. pool.usxmrpool.com:3333"
<<
endl
;
cout
<<
" -u, --user USERNAME pool user name or wallet address"
<<
endl
;
cout
<<
" -p, --pass PASSWD pool password, in the most cases x or empty
\"\"
"
<<
endl
;
cout
<<
"
\n
"
<<
endl
;
cout
<<
XMR_STAK_NAME
<<
" "
<<
XMR_STAK_VERSION
<<
endl
;
cout
<<
"Brought to by fireice_uk and psychocrypt under GPLv3."
<<
endl
;
}
int
main
(
int
argc
,
char
*
argv
[])
...
...
@@ -90,6 +112,7 @@ int main(int argc, char *argv[])
if
(
params
::
inst
().
binaryName
.
compare
(
pathWithName
)
!=
0
)
params
::
inst
().
executablePrefix
=
std
::
string
(
pathWithName
,
0
,
pos
);
bool
userSetPasswd
=
false
;
for
(
int
i
=
1
;
i
<
argc
;
++
i
)
{
std
::
string
opName
(
argv
[
i
]);
...
...
@@ -175,6 +198,7 @@ int main(int argc, char *argv[])
win_exit
();
return
1
;
}
userSetPasswd
=
true
;
params
::
inst
().
poolPasswd
=
argv
[
i
];
}
else
...
...
@@ -203,7 +227,7 @@ int main(int argc, char *argv[])
std
::
cin
>>
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'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment