Browse Source

Duplicate (hidden) --userpass option before --pool-priority so it can be used in config files

Luke Dashjr 12 years ago
parent
commit
3f21b2be0c
2 changed files with 4 additions and 1 deletions
  1. 1 1
      libblkmaker
  2. 3 0
      miner.c

+ 1 - 1
libblkmaker

@@ -1 +1 @@
-Subproject commit a9a29294b2028dfd68fba35d42d440d3283f668d
+Subproject commit bca8f6f5e56c547e9bbc808fb644152e44f3344d

+ 3 - 0
miner.c

@@ -1159,6 +1159,9 @@ static struct opt_table opt_config_table[] = {
 	OPT_WITHOUT_ARG("--per-device-stats",
 			opt_set_bool, &want_per_device_stats,
 			"Force verbose mode and output per-device statistics"),
+	OPT_WITH_ARG("--userpass|-O",  // duplicate to ensure config loads it before pool-priority
+	             set_userpass, NULL, NULL,
+	             opt_hidden),
 	OPT_WITH_ARG("--pool-priority",
 			 set_pool_priority, NULL, NULL,
 			 "Priority for just the previous-defined pool"),