r2444 - trunk/varnish-cache/bin/varnishlog
des at projects.linpro.no
des at projects.linpro.no
Sun Feb 10 19:00:34 CET 2008
Author: des
Date: 2008-02-10 19:00:33 +0100 (Sun, 10 Feb 2008)
New Revision: 2444
Modified:
trunk/varnish-cache/bin/varnishlog/varnishlog.c
Log:
Alphabetize command-line options.
Modified: trunk/varnish-cache/bin/varnishlog/varnishlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishlog/varnishlog.c 2008-02-09 15:59:21 UTC (rev 2443)
+++ trunk/varnish-cache/bin/varnishlog/varnishlog.c 2008-02-10 18:00:33 UTC (rev 2444)
@@ -297,6 +297,14 @@
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 @@
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;
More information about the varnish-commit
mailing list