diff options
Diffstat (limited to 'xbiff.c')
-rw-r--r-- | xbiff.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -80,7 +80,8 @@ static void Usage (void) " -bg color background color\n" " -fg color foreground color\n" " -rv reverse video\n" -" -shape shape the window\n"; +" -shape shape the window\n" +" -version print version info and exit\n"; fprintf (stderr, "usage: %s [-options ...]\n", ProgramName); fprintf (stderr, "%s\n", help_message); @@ -100,6 +101,10 @@ main (int argc, char **argv) toplevel = XtAppInitialize(&xtcontext, "XBiff", options, XtNumber (options), &argc, argv, NULL, NULL, 0); + if (argc == 2 && strcmp(argv[1], "-version") == 0) { + puts(PACKAGE_STRING); + exit(0); + } if (argc != 1) Usage (); /* |