Browse Source

Allow --scantime alias to --scan-time

Luke Dashjr 13 years ago
parent
commit
e26691c643
1 changed files with 3 additions and 0 deletions
  1. 3 0
      main.c

+ 3 - 0
main.c

@@ -1686,6 +1686,9 @@ static struct opt_table opt_config_table[] = {
 	OPT_WITH_ARG("--scan-time|-s",
 	OPT_WITH_ARG("--scan-time|-s",
 		     set_int_0_to_9999, opt_show_intval, &opt_scantime,
 		     set_int_0_to_9999, opt_show_intval, &opt_scantime,
 		     "Upper bound on time spent scanning current work, in seconds"),
 		     "Upper bound on time spent scanning current work, in seconds"),
+	OPT_WITH_ARG("--scantime",
+		     set_int_0_to_9999, opt_show_intval, &opt_scantime,
+		     opt_hidden),
 	OPT_WITH_ARG("--sched-start",
 	OPT_WITH_ARG("--sched-start",
 		     set_schedtime, NULL, &schedstart,
 		     set_schedtime, NULL, &schedstart,
 		     "Set a time of day in HH:MM to start mining (a once off without a stop time)"),
 		     "Set a time of day in HH:MM to start mining (a once off without a stop time)"),