summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index d3aa86f..1919569 100644
--- a/scope.c
+++ b/scope.c
@@ -670,6 +670,7 @@ Usage(void)
" [-D<debug-level>]\n"
" [-I] -- start in interactive mode\n"
" [-S<n>] -- start/stop on SIGUSR1\n"
+ " [-V] -- output version information and exit\n"
" [-t] -- terminate when all clients close\n");
exit(1);
}
@@ -727,6 +728,10 @@ ScanArgs(int argc, char **argv)
ScopeEnabled = atoi(++*argv);
break;
+ case 'V': /* print version & exit */
+ printf("%s\n", PACKAGE_STRING);
+ exit(0);
+
case 'q': /* quiet mode */
XVerbose = 0;
debug(1, (stderr, "Verbose = %d\n", XVerbose));