add -V (version) flag
This commit is contained in:
@@ -136,7 +136,7 @@ main(argc, argv)
|
|||||||
Argv = argv;
|
Argv = argv;
|
||||||
|
|
||||||
/* XXX - timestamp option? (begin,end) */
|
/* XXX - timestamp option? (begin,end) */
|
||||||
while ((ch = getopt(argc, argv, "d:lm:p:s:t:u:w:")) != -1) {
|
while ((ch = getopt(argc, argv, "d:lm:p:s:t:u:V")) != -1) {
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case 'd':
|
case 'd':
|
||||||
session_dir = optarg;
|
session_dir = optarg;
|
||||||
@@ -165,6 +165,9 @@ main(argc, argv)
|
|||||||
case 'u':
|
case 'u':
|
||||||
user = optarg;
|
user = optarg;
|
||||||
break;
|
break;
|
||||||
|
case 'V':
|
||||||
|
(void) printf("%s version %s\n", getprogname(), PACKAGE_VERSION);
|
||||||
|
exit(0);
|
||||||
default:
|
default:
|
||||||
usage();
|
usage();
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
|
Reference in New Issue
Block a user