Browse code

core: command line option -v replaced with -K

- -v was exposing to misusage for -V (version), now is aliased to it

Daniel-Constantin Mierla authored on 05/01/2013 23:00:40
Showing 2 changed files
... ...
@@ -225,7 +225,7 @@ Options:\n\
225 225
                   field to a via\n\
226 226
     -R           Same as `-r` but use reverse dns;\n\
227 227
                   (to use both use `-rR`)\n\
228
-    -v           Turn on \"via:\" host checking when forwarding replies\n\
228
+    -K           Turn on \"via:\" host checking when forwarding replies\n\
229 229
     -d           Debugging mode (multiple -d increase the level)\n\
230 230
     -D no        1..do not fork (almost) anyway, 2..do not daemonize creator\n\
231 231
                   3..daemonize (default)\n\
... ...
@@ -1860,7 +1860,7 @@ int main(int argc, char** argv)
1860 1860
 	dprint_init_colors();
1861 1861
 
1862 1862
 	/* command line options */
1863
-	options=  ":f:cm:M:dVIhEeb:l:L:n:vrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"
1863
+	options=  ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"
1864 1864
 #ifdef STATS
1865 1865
 		"s:"
1866 1866
 #endif
... ...
@@ -1957,6 +1957,7 @@ int main(int argc, char** argv)
1957 1957
 			case 'd':
1958 1958
 					/* ignore it, was parsed immediately after startup */
1959 1959
 					break;
1960
+			case 'v':
1960 1961
 			case 'V':
1961 1962
 					printf("version: %s\n", full_version);
1962 1963
 					printf("flags: %s\n", ver_flags );
... ...
@@ -2019,7 +2020,7 @@ int main(int argc, char** argv)
2019 2019
 			case 'b':
2020 2020
 			case 'l':
2021 2021
 			case 'n':
2022
-			case 'v':
2022
+			case 'K':
2023 2023
 			case 'r':
2024 2024
 			case 'R':
2025 2025
 			case 'D':
... ...
@@ -2129,6 +2130,7 @@ try_again:
2129 2129
 			case 'm':
2130 2130
 			case 'M':
2131 2131
 			case 'd':
2132
+			case 'v':
2132 2133
 			case 'V':
2133 2134
 			case 'I':
2134 2135
 			case 'h':
... ...
@@ -2175,7 +2177,7 @@ try_again:
2175 2175
 						goto error;
2176 2176
 					}
2177 2177
 					break;
2178
-			case 'v':
2178
+			case 'K':
2179 2179
 					check_via=1;
2180 2180
 					break;
2181 2181
 			case 'r':
... ...
@@ -66,7 +66,7 @@ Same as
66 66
 .B \-r
67 67
 but uses reverse dns.
68 68
 .TP
69
-.BI \-v
69
+.BI \-K
70 70
 Turns on via host checking when forwarding replies.
71 71
 .TP
72 72
 .BI \-d