]> granicus.if.org Git - pdns/commitdiff
add some help output to dnsbulktest
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 26 Aug 2010 08:19:44 +0000 (08:19 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 26 Aug 2010 08:19:44 +0000 (08:19 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1695 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnsbulktest.cc

index e6bdd44063da29798b08589ac68b12e2683de323..9aed7a1c5a21af4b4fbb0251705c6ad44578f94c 100644 (file)
@@ -139,6 +139,10 @@ struct SendReceive
 
 int main(int argc, char** argv)
 {
+  if(argc != 3 && argc != 4) {
+    cerr<<"Syntax: dnsbulktest ip-address port number [limit] < top-1m.csv"<<endl;
+    exit(1);
+  }
   SendReceive sr(argv[1], atoi(argv[2]));
   unsigned int limit = 0;
   if(argc==4)