Commit 56070ca1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Ok, make code and error message somewhat consistent...



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5525 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 19315068
......@@ -539,7 +539,9 @@ main(int argc, char * const *argv)
if (b_arg != NULL && f_arg != NULL) {
fprintf(stderr, "Only one of -b or -f can be specified\n");
usage();
} else if (S_arg == NULL && T_arg == NULL) {
}
if (S_arg == NULL && T_arg == NULL && d_flag == 0 && b_arg == NULL &&
f_arg == NULL) {
fprintf(stderr,
"At least one of -d, -b, -f, -S or -T must be specified\n");
usage();
......
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