From 4f22e7888bc88917870d3ae707c7007aece93ec9 Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Sun, 1 Mar 2015 20:35:59 +0100 Subject: [PATCH] Free up command line option -v for verbose mode The option to display the version number is now -V. --- log.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/log.c b/log.c index eb48908..8e6468a 100644 --- a/log.c +++ b/log.c @@ -90,6 +90,7 @@ int main(int argc,char *argv[]) {"split",no_argument,&split,1}, {"splitprefix",required_argument,NULL,'P'}, {"statistics",no_argument,&show_statis,1}, + {"version",no_argument,NULL,'V'}, {0,0,0,0} }; @@ -282,7 +283,7 @@ int main(int argc,char *argv[]) strcpy(Title,_("Squid User Access Report")); - while((ch = getopt_long(argc, argv, "a:b:c:d:e:f:g:hikl:L:mno:P:prs:t:u:vw:xyz",long_options,&option_index)) != -1){ + while((ch = getopt_long(argc, argv, "a:b:c:d:e:f:g:hikl:L:mno:P:prs:t:u:Vw:xyz",long_options,&option_index)) != -1){ switch(ch) { case 0: @@ -393,7 +394,7 @@ int main(int argc,char *argv[]) case 'u': safe_strcpy(us,optarg,sizeof(us)); break; - case 'v': + case 'V': version(); break; case 'w': -- 2.47.2