From: phk Date: Mon, 25 Jun 2007 09:46:30 +0000 (+0000) Subject: Make sure that -F and -d are exclusive. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf637e526fff49c3f8cabfe2b1f91df6ae4ae0b7;p=varnish Make sure that -F and -d are exclusive. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1558 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/varnishd.c b/varnish-cache/bin/varnishd/varnishd.c index d401cdf1..e7e17470 100644 --- a/varnish-cache/bin/varnishd/varnishd.c +++ b/varnish-cache/bin/varnishd/varnishd.c @@ -506,6 +506,11 @@ main(int argc, char *argv[]) exit(1); } + if (d_flag && F_flag) { + fprintf(stderr, "Only one of -d or -F can be specified\n"); + usage(); + } + if (b_arg != NULL && f_arg != NULL) { fprintf(stderr, "Only one of -b or -f can be specified\n"); usage();