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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fdb62a4085175210c965e9df82f4a4072f27dcb;p=pdns Fix getopt options to match the documentation. --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index a2f922cf1..63a3aaabe 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) {