From 9b8a7319c08cbfda1be4cc46e42647245347b14f Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Sun, 22 Dec 2013 13:10:20 +1100 Subject: [PATCH] core: Add back a dummy --scrypt option Removing it means existing shell scripts fail unless they are updated to remove passing the option. Instead, just print a deprecation warning. Signed-off-by: Benjamin Herrenschmidt --- cgminer.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cgminer.c b/cgminer.c index 5c35dea5..650b809e 100644 --- a/cgminer.c +++ b/cgminer.c @@ -945,6 +945,12 @@ static char *set_null(const char __maybe_unused *arg) return NULL; } +static char *deprecated_scrypt(void *arg) +{ + applog(LOG_WARNING, "Option --scrypt is deprecated !"); + return NULL; +} + /* These options are available from config file or commandline */ static struct opt_table opt_config_table[] = { OPT_WITH_ARG("--api-allow", @@ -1150,6 +1156,9 @@ static struct opt_table opt_config_table[] = { OPT_WITH_ARG("--sched-stop", set_schedtime, NULL, &schedstop, "Set a time of day in HH:MM to stop mining (will quit without a start time)"), + OPT_WITHOUT_ARG("--scrypt", + deprecated_scrypt, NULL, + "Use the scrypt algorithm for mining (DEPRECATED)"), OPT_WITH_ARG("--shaders", set_shaders, NULL, NULL, "GPU shaders per card for tuning scrypt, comma separated"),