shithub: puzzles

Download patch

ref: cf9e6e81ebecbc98bc853dcbb2ceabc832cb49fb
parent: 981b831c21fb21d9ab04abf6a3bf330aa7a14dc5
author: Simon Tatham <anakin@pobox.com>
date: Wed May 18 13:27:16 EDT 2005

--version.

[originally from svn r5806]

--- a/gtk.c
+++ b/gtk.c
@@ -1236,6 +1236,12 @@
     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