From 4fdb62a4085175210c965e9df82f4a4072f27dcb Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 6 Nov 2015 16:43:27 +0100 Subject: [PATCH] Fix getopt options to match the documentation. --- pdns/dnsdist.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.40.0