Commit ce1c9a8aca8b5fa43a3bcf577b1897e5e6a5cf3d

Jeff Garzik 2010-12-06T20:21:22

Display version on minerd --help usage output.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cpu-miner.c b/cpu-miner.c
index db1fd57..5371296 100644
--- a/cpu-miner.c
+++ b/cpu-miner.c
@@ -327,6 +327,7 @@ static void show_usage(void)
 {
 	int i;
 
+	printf("minerd version %s\n\n", VERSION);
 	printf("Usage:\tminerd [options]\n\nSupported options:\n");
 	for (i = 0; i < ARRAY_SIZE(options_help); i++) {
 		struct option_help *h;