From: Pieter Lexis Date: Wed, 25 Nov 2015 16:42:41 +0000 (+0100) Subject: Add --version to dnsdist X-Git-Tag: dnsdist-1.0.0-alpha1~193^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6306c28260ab5b0cc40e3693dfb298cdc931652d;p=pdns Add --version to dnsdist --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index fc72f8316..3253e4423 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -1103,13 +1103,14 @@ try {"pidfile", required_argument, 0, 'p'}, {"supervised", 0, 0, 's'}, {"uid", required_argument, 0, 'u'}, + {"version", 0, 0, 'V'}, {"help", 0, 0, 'h'}, {0,0,0,0} }; int longindex=0; string optstring; for(;;) { - int c=getopt_long(argc, argv, "a:hcde:C:l:vp:g:u:", longopts, &longindex); + int c=getopt_long(argc, argv, "a:hcde:C:l:vp:g:u:V", longopts, &longindex); if(c==-1) break; switch(c) { @@ -1129,6 +1130,8 @@ try g_cmdLine.gid=optarg; break; case 'h': + cout<<"dnsdist "<