Implement --variant option.

This commit is contained in:
XMRig 2018-10-04 20:27:29 +03:00
parent bf2eb1a685
commit a06a224c0a

View file

@ -341,6 +341,13 @@ static void parse_arg(int key, char *arg) {
opt_donate_level = v;
break;
case 1021: /* --variant */
v = atoi(arg);
if (v > VARIANT_AUTO && v < VARIANT_MAX) {
opt_variant = v;
}
break;
case 1006: /* --nicehash */
opt_nicehash = true;
break;