From: Remi Gacogne Date: Fri, 6 Nov 2015 15:43:27 +0000 (+0100) Subject: Fix getopt options to match the documentation. X-Git-Tag: dnsdist-1.0.0-alpha1~225^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2872%2Fhead;p=thirdparty%2Fpdns.git Fix getopt options to match the documentation. --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index a2f922cf12..63a3aaabe3 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -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) {