Commit e41171424ab1c4430f78f81b08797ab79e8ddd9a

Jeff Garzik 2011-01-29T00:28:19

Fix non-working short options -q and -r N, by listing them in optstring.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cpu-miner.c b/cpu-miner.c
index 168daf3..648f4d9 100644
--- a/cpu-miner.c
+++ b/cpu-miner.c
@@ -432,7 +432,7 @@ static void parse_cmdline(int argc, char *argv[])
 	int key;
 
 	while (1) {
-		key = getopt_long(argc, argv, "a:DPt:h?", options, NULL);
+		key = getopt_long(argc, argv, "a:qDPr:t:h?", options, NULL);
 		if (key < 0)
 			break;