]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Free up command line option -v for verbose mode
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 1 Mar 2015 19:35:59 +0000 (20:35 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 1 Mar 2015 19:35:59 +0000 (20:35 +0100)
The option to display the version number is now -V.

log.c

diff --git a/log.c b/log.c
index eb489084f0d5d8bb95cee30ac63a4f2a56abc64e..8e6468af0ca49728b9cbe7ed154e252665436a9a 100644 (file)
--- 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':