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
f0875b61
There was an error fetching the commit references. Please try again later.
Commit
f0875b61
authored
7 years ago
by
psychocrypt
Browse files
Options
Downloads
Patches
Plain Diff
add cli option `-v/--version`
parent
062287ad
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/usage.md
+1
-0
1 addition, 0 deletions
doc/usage.md
xmrstak/cli/cli-miner.cpp
+6
-0
6 additions, 0 deletions
xmrstak/cli/cli-miner.cpp
with
7 additions
and
0 deletions
doc/usage.md
+
1
−
0
View file @
f0875b61
...
...
@@ -32,6 +32,7 @@ The miner allow to overwrite some of the settings via command line options.
Usage: xmr-stak [OPTION]...
-h, --help show this help
-v, --version show version number
-c, --config FILE common miner configuration file
--currency NAME currency to mine: monero or aeon
--noCPU disable the CPU miner backend
...
...
This diff is collapsed.
Click to expand it.
xmrstak/cli/cli-miner.cpp
+
6
−
0
View file @
f0875b61
...
...
@@ -63,6 +63,7 @@ void help()
cout
<<
"Usage: "
<<
params
::
inst
().
binaryName
<<
" [OPTION]..."
<<
endl
;
cout
<<
" "
<<
endl
;
cout
<<
" -h, --help show this help"
<<
endl
;
cout
<<
" -v, --version show version number"
<<
endl
;
cout
<<
" -c, --config FILE common miner configuration file"
<<
endl
;
#if (!defined(CONF_NO_AEON)) && (!defined(CONF_NO_MONERO))
cout
<<
" --currency NAME currency to mine: monero or aeon"
<<
endl
;
...
...
@@ -296,6 +297,11 @@ int main(int argc, char *argv[])
//win_exit();
return
0
;
}
if
(
opName
.
compare
(
"-v"
)
==
0
||
opName
.
compare
(
"--version"
)
==
0
)
{
std
::
cout
<<
"Version: "
<<
get_version_str
()
<<
std
::
endl
;
return
0
;
}
else
if
(
opName
.
compare
(
"--noCPU"
)
==
0
)
{
params
::
inst
().
useCPU
=
false
;
...
...
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