diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-05-18 17:27:16 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-05-18 17:27:16 +0000 |
| commit | cf9e6e81ebecbc98bc853dcbb2ceabc832cb49fb (patch) | |
| tree | 34768d126f487ccb5cfc41a867924492fc23d03a /gtk.c | |
| parent | 981b831c21fb21d9ab04abf6a3bf330aa7a14dc5 (diff) | |
| download | puzzles-cf9e6e81ebecbc98bc853dcbb2ceabc832cb49fb.zip puzzles-cf9e6e81ebecbc98bc853dcbb2ceabc832cb49fb.tar.gz puzzles-cf9e6e81ebecbc98bc853dcbb2ceabc832cb49fb.tar.bz2 puzzles-cf9e6e81ebecbc98bc853dcbb2ceabc832cb49fb.tar.xz | |
--version.
[originally from svn r5806]
Diffstat (limited to 'gtk.c')
| -rw-r--r-- | gtk.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |