From: des Date: Sun, 10 Feb 2008 18:00:33 +0000 (+0000) Subject: Alphabetize command-line options. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a84f5061fdcd1509c6ca985a15c17672cbccb3b;p=varnish Alphabetize command-line options. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2444 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishlog/varnishlog.c b/varnish-cache/bin/varnishlog/varnishlog.c index 3bc2bf4c..f906fe70 100644 --- a/varnish-cache/bin/varnishlog/varnishlog.c +++ b/varnish-cache/bin/varnishlog/varnishlog.c @@ -297,6 +297,14 @@ main(int argc, char **argv) case 'a': a_flag = 1; break; + case 'b': + b_flag = 1; + VSL_Arg(vd, c, optarg); + break; + case 'c': + c_flag = 1; + VSL_Arg(vd, c, optarg); + break; case 'D': D_flag = 1; break; @@ -315,16 +323,6 @@ main(int argc, char **argv) case 'w': w_arg = optarg; break; - case 'c': - c_flag = 1; - if (VSL_Arg(vd, c, optarg) > 0) - break; - usage(); - case 'b': - b_flag = 1; - if (VSL_Arg(vd, c, optarg) > 0) - break; - usage(); default: if (VSL_Arg(vd, c, optarg) > 0) break;