Mercurial > dropbear
comparison svr-runopts.c @ 946:17d874ae93a1
Add '-V' for version
-h should exit with success
Update manpages
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 27 Jul 2014 22:06:26 +0800 |
parents | 5bfce5dcd461 |
children | f92eb625c48d |
comparison
equal
deleted
inserted
replaced
944:2e402a09e21e | 946:17d874ae93a1 |
---|---|
90 "-i Start for inetd\n" | 90 "-i Start for inetd\n" |
91 #endif | 91 #endif |
92 "-W <receive_window_buffer> (default %d, larger may be faster, max 1MB)\n" | 92 "-W <receive_window_buffer> (default %d, larger may be faster, max 1MB)\n" |
93 "-K <keepalive> (0 is never, default %d, in seconds)\n" | 93 "-K <keepalive> (0 is never, default %d, in seconds)\n" |
94 "-I <idle_timeout> (0 is never, default %d, in seconds)\n" | 94 "-I <idle_timeout> (0 is never, default %d, in seconds)\n" |
95 "-V Version\n" | |
95 #ifdef DEBUG_TRACE | 96 #ifdef DEBUG_TRACE |
96 "-v verbose (compiled with DEBUG_TRACE)\n" | 97 "-v verbose (compiled with DEBUG_TRACE)\n" |
97 #endif | 98 #endif |
98 ,DROPBEAR_VERSION, progname, | 99 ,DROPBEAR_VERSION, progname, |
99 #ifdef DROPBEAR_DSS | 100 #ifdef DROPBEAR_DSS |
254 svr_opts.allowblankpass = 1; | 255 svr_opts.allowblankpass = 1; |
255 break; | 256 break; |
256 #endif | 257 #endif |
257 case 'h': | 258 case 'h': |
258 printhelp(argv[0]); | 259 printhelp(argv[0]); |
259 exit(EXIT_FAILURE); | 260 exit(EXIT_SUCCESS); |
260 break; | 261 break; |
261 case 'u': | 262 case 'u': |
262 /* backwards compatibility with old urandom option */ | 263 /* backwards compatibility with old urandom option */ |
263 break; | 264 break; |
264 #ifdef DEBUG_TRACE | 265 #ifdef DEBUG_TRACE |
265 case 'v': | 266 case 'v': |
266 debug_trace = 1; | 267 debug_trace = 1; |
267 break; | 268 break; |
268 #endif | 269 #endif |
270 case 'V': | |
271 print_version("server"); | |
272 exit(EXIT_SUCCESS); | |
273 break; | |
269 default: | 274 default: |
270 fprintf(stderr, "Unknown argument %s\n", argv[i]); | 275 fprintf(stderr, "Unknown argument %s\n", argv[i]); |
271 printhelp(argv[0]); | 276 printhelp(argv[0]); |
272 exit(EXIT_FAILURE); | 277 exit(EXIT_FAILURE); |
273 break; | 278 break; |