comparison cli-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 a0819ecfee0b
children 1bf92da7a2a0
comparison
equal deleted inserted replaced
944:2e402a09e21e 946:17d874ae93a1
88 #endif 88 #endif
89 #ifdef ENABLE_USER_ALGO_LIST 89 #ifdef ENABLE_USER_ALGO_LIST
90 "-c <cipher list> Specify preferred ciphers ('-c help' to list options)\n" 90 "-c <cipher list> Specify preferred ciphers ('-c help' to list options)\n"
91 "-m <MAC list> Specify preferred MACs for packet verification (or '-m help')\n" 91 "-m <MAC list> Specify preferred MACs for packet verification (or '-m help')\n"
92 #endif 92 #endif
93 "-V Version\n"
93 #ifdef DEBUG_TRACE 94 #ifdef DEBUG_TRACE
94 "-v verbose (compiled with DEBUG_TRACE)\n" 95 "-v verbose (compiled with DEBUG_TRACE)\n"
95 #endif 96 #endif
96 ,DROPBEAR_VERSION, cli_opts.progname, 97 ,DROPBEAR_VERSION, cli_opts.progname,
97 DEFAULT_RECV_WINDOW, DEFAULT_KEEPALIVE, DEFAULT_IDLE_TIMEOUT); 98 DEFAULT_RECV_WINDOW, DEFAULT_KEEPALIVE, DEFAULT_IDLE_TIMEOUT);
322 case 'R': 323 case 'R':
323 #endif 324 #endif
324 #ifndef ENABLE_CLI_LOCALTCPFWD 325 #ifndef ENABLE_CLI_LOCALTCPFWD
325 case 'L': 326 case 'L':
326 #endif 327 #endif
328 case 'V':
329 print_version();
330 exit(EXIT_SUCCESS);
331 break;
327 case 'o': 332 case 'o':
328 case 'b': 333 case 'b':
329 next = &dummy; 334 next = &dummy;
330 default: 335 default:
331 fprintf(stderr, 336 fprintf(stderr,