summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index a8278eb..c7e609e 100644
--- a/misc.c
+++ b/misc.c
@@ -71,7 +71,7 @@ Usage(void)
(void) fprintf (stderr,
"\t[-cdt <#secs>] [-pmport <port#>] [-config <path>]\\\n");
(void) fprintf (stderr,
- "\t[-logfile <path>] [-loglevel <0|1>] [-verify]\n");
+ "\t[-logfile <path>] [-loglevel <0|1>] [-verify] [-version]\n");
exit (0);
}
@@ -1344,6 +1344,11 @@ doProcessInputArgs (
}
config_info->log_level = atoi(argv[arg_counter + 1]);
}
+ else if (!strcmp("-version", argv[arg_counter]))
+ {
+ puts(PACKAGE_STRING);
+ exit(0);
+ }
else
{
fprintf(stderr, "%s: Unrecognized command line argument '%s'\n",