Commit da9cc3ee authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Add -V option, fix usage string.

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1013 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent a7afe1d8
......@@ -145,7 +145,7 @@ static void
usage(void)
{
fprintf(stderr,
"usage: varnishhist");
"usage: varnishhist %s [-V] [-w delay]\n", VSL_USAGE);
exit(1);
}
......@@ -157,8 +157,11 @@ main(int argc, char **argv)
vd = VSL_New();
while ((c = getopt(argc, argv, VSL_ARGS "w:")) != -1) {
while ((c = getopt(argc, argv, VSL_ARGS "Vw:")) != -1) {
switch (c) {
case 'V':
varnish_version("varnishhist");
exit(0);
case 'w':
delay = atoi(optarg);
break;
......
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