aboutsummaryrefslogtreecommitdiff
path: root/gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk.c')
-rw-r--r--gtk.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk.c b/gtk.c
index 55bc179..1e32c6a 100644
--- 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