]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: add --version to --help
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 3 Apr 2018 08:37:09 +0000 (10:37 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 3 Apr 2018 09:00:45 +0000 (11:00 +0200)
pdns/dnsdist.cc

index 60d3e24f4a031dabec5a01eb3d1144e74b0f79f8..dd116a43883e34be2b3766bc3fae6752d28d20a1 100644 (file)
@@ -2001,7 +2001,7 @@ static void usage()
   cout<<endl;
   cout<<"Syntax: dnsdist [-C,--config file] [-c,--client [IP[:PORT]]]\n";
   cout<<"[-e,--execute cmd] [-h,--help] [-l,--local addr]\n";
-  cout<<"[-v,--verbose] [--check-config]\n";
+  cout<<"[-v,--verbose] [--check-config] [--version]\n";
   cout<<"\n";
   cout<<"-a,--acl netmask      Add this netmask to the ACL\n";
   cout<<"-C,--config file      Load configuration from 'file'\n";
@@ -2026,6 +2026,7 @@ static void usage()
   cout<<"                        (use with e.g. systemd)\n";
   cout<<"-u,--uid uid          Change the process user ID after binding sockets\n";
   cout<<"-v,--verbose          Enable verbose mode\n";
+  cout<<"-V,--version          Show dnsdist version information and exit\n";
 }
 
 int main(int argc, char** argv)