summaryrefslogtreecommitdiff
path: root/xbiff.c
diff options
context:
space:
mode:
Diffstat (limited to 'xbiff.c')
-rw-r--r--xbiff.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/xbiff.c b/xbiff.c
index 46f4550..e833a2e 100644
--- a/xbiff.c
+++ b/xbiff.c
@@ -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 ();
/*