Commit 27f3d04c authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(usage): Accept -v and -V.

(main): Likewise.
parent 8a5d8046
/*
* $Id: komrunning.c,v 1.2 1999/04/17 21:54:48 ceder Exp $
* $Id: komrunning.c,v 1.3 1999/05/16 19:12:40 ceder Exp $
* Copyright (C) 1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -49,7 +49,8 @@
static void
usage(const char *arg0)
{
fprintf(stderr, "usage: %s [-c config-file] [start | stop]\n",
fprintf(stderr,
"usage: %s [-c config-file] [ -v ] [ -V ] [start | stop]\n",
arg0);
exit(1);
}
......@@ -174,6 +175,11 @@ main (int argc,
config_file = argv[i];
break;
case 'V':
case 'v':
fprintf(stderr, "komrunning from %s-%s\n", PACKAGE, VERSION);
exit(0);
default:
usage(argv[0]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment