chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
981b831
)
--version.
author
Simon Tatham
<anakin@pobox.com>
Wed, 18 May 2005 17:27:16 +0000
(17:27 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Wed, 18 May 2005 17:27:16 +0000
(17:27 +0000)
[originally from svn r5806]
gtk.c
patch
|
blob
|
history
diff --git
a/gtk.c
b/gtk.c
index 55bc1791d8655e1fbb10350e3aa7b849ef24bb03..1e32c6a12cd1ca271bba8c8fd5519bbbf18d2f1e 100644
(file)
--- a/
gtk.c
+++ b/
gtk.c
@@
-1236,6
+1236,12
@@
int main(int argc, char **argv)
char *pname = argv[0];
char *error;
+ if (argc > 1 && !strcmp(argv[1], "--version")) {
+ printf("%s, from Simon Tatham's Portable Puzzle Collection\n%s\n",
+ thegame.name, ver);
+ return 0;
+ }
+
/*
* Special standalone mode for generating puzzle IDs on the
* command line. Useful for generating puzzles to be printed