From 5cc1ea1df23e3b20c65424145c91a88172c9ef4a Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Sat, 20 Jan 2018 00:57:51 +0100 Subject: [PATCH] recursor: abort when unused arguments remain Copied this over from receiver.cc, as @ahupowerdns pointed out that Auth handles this. --- pdns/pdns_recursor.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index d96a64be9..63b3db1a3 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -3435,6 +3435,11 @@ int main(int argc, char **argv) } cleanSlashes(configname); + if(!::arg().getCommands().empty()) { + cerr<<"Fatal: non-option on the command line, perhaps a '--setting=123' statement missed the '='?"<