Commit df1dcd5c authored by Petter Knudsen's avatar Petter Knudsen

Cleaned up some usage statements


git-svn-id: http://www.varnish-cache.org/svn/trunk@3074 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 88a55647
......@@ -503,7 +503,7 @@ static void
usage(void)
{
fprintf(stderr, "usage: varnishncsa %s [-aDV] [-n varnish_name] [-P file] [-w file]\n", VSL_ARGS);
fprintf(stderr, "usage: varnishncsa %s [-aDV] [-n varnish_name] [-P file] [-w file]\n", VSL_USAGE);
exit(1);
}
......
......@@ -300,6 +300,17 @@ exec_file(const char *fn)
printf("# TEST %s completed\n", fn);
}
/**********************************************************************
* Print usage
*/
static void
usage(void)
{
fprintf(stderr, "usage: varnishtest [-qv] file ...\n");
exit(1);
}
/**********************************************************************
* Main
*/
......@@ -322,13 +333,16 @@ main(int argc, char * const *argv)
case 'v':
vtc_verbosity++;
break;
case '?':
default:
errx(1, "Usage");
usage();
}
}
argc -= optind;
argv += optind;
if(argc == 0)
usage();
init_sema();
for (ch = 0; ch < argc; ch++)
exec_file(argv[ch]);
......
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