]> granicus.if.org Git - pdns/commitdiff
Fix getopt options to match the documentation.
authorRemi Gacogne <rgacogne-github@coredump.fr>
Fri, 6 Nov 2015 15:43:27 +0000 (16:43 +0100)
committerRemi Gacogne <rgacogne-github@coredump.fr>
Fri, 6 Nov 2015 15:43:27 +0000 (16:43 +0100)
pdns/dnsdist.cc

index a2f922cf12acfd3f72edc05a82c2e85ad7827e73..63a3aaabe35c4e2b135a455144e200d32973584a 100644 (file)
@@ -956,7 +956,7 @@ try
   struct option longopts[]={ 
     {"config", required_argument, 0, 'C'},
     {"execute", required_argument, 0, 'e'},
-    {"command", optional_argument, 0, 'c'},
+    {"client", 0, 0, 'c'},
     {"local",  required_argument, 0, 'l'},
     {"daemon", 0, 0, 'd'},
     {"pidfile",  required_argument, 0, 'p'},
@@ -966,7 +966,7 @@ try
   };
   int longindex=0;
   for(;;) {
-    int c=getopt_long(argc, argv, "hbcde:C:l:m:vp:", longopts, &longindex);
+    int c=getopt_long(argc, argv, "hcde:C:l:vp:", longopts, &longindex);
     if(c==-1)
       break;
     switch(c) {