From: H.G.Muller Date: Thu, 23 Oct 2014 16:04:54 +0000 (+0200) Subject: Implement -v option for printing version number X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8080e7e88dabe90cbe4b91ff9f4227e38e6523ac;p=fairymax.git Implement -v option for printing version number --- diff --git a/fairymax.c b/fairymax.c index 80a210d..8c133c2 100644 --- a/fairymax.c +++ b/fairymax.c @@ -553,6 +553,8 @@ int main(int argc, char **argv) int m, nr; double cpuT; + if(argc > 1 && !strcmp(argv[1], "-v")) argc++, argv--, printf("%s\n", VERSION), exit(0); + if(argc>1 && sscanf(argv[1], "%d", &m)==1) { U = (1<