]> err.no Git - varnish/commitdiff
Alphabetize command-line options.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 10 Feb 2008 18:00:33 +0000 (18:00 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 10 Feb 2008 18:00:33 +0000 (18:00 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2444 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishlog/varnishlog.c

index 3bc2bf4c7eff21fd44fec846219b5d6ce58cd7b1..f906fe70c8f2deeabc65b91c31925286c42dcd23 100644 (file)
@@ -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;