--version.

[originally from svn r5806]
This commit is contained in:
Simon Tatham
2005-05-18 17:27:16 +00:00
parent 981b831c21
commit cf9e6e81eb

6
gtk.c
View File

@ -1236,6 +1236,12 @@ int main(int argc, char **argv)
char *pname = argv[0]; char *pname = argv[0];
char *error; 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 * Special standalone mode for generating puzzle IDs on the
* command line. Useful for generating puzzles to be printed * command line. Useful for generating puzzles to be printed