projects
/
fairymax.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b12e119
)
Implement -v option for printing version number
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Thu, 23 Oct 2014 16:04:54 +0000 (18:04 +0200)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Thu, 23 Oct 2014 16:04:54 +0000 (18:04 +0200)
fairymax.c
patch
|
blob
|
history
diff --git
a/fairymax.c
b/fairymax.c
index
80a210d
..
8c133c2
100644
(file)
--- a/
fairymax.c
+++ b/
fairymax.c
@@
-553,6
+553,8
@@
int main(int argc, char **argv)
int m, nr;
\r
double cpuT;
\r
\r
+ if(argc > 1 && !strcmp(argv[1], "-v")) argc++, argv--, printf("%s\n", VERSION), exit(0);
\r
+
\r
if(argc>1 && sscanf(argv[1], "%d", &m)==1)
\r
{ U = (1<<m)-1; argc--; argv++; }
\r
A = (struct _ *) calloc(U+1, sizeof(struct _));
\r