diff options
Diffstat (limited to 'cli-runopts.c')
-rw-r--r-- | cli-runopts.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli-runopts.c b/cli-runopts.c index f8e289b..5f36f7c 100644 --- a/cli-runopts.c +++ b/cli-runopts.c @@ -90,6 +90,7 @@ static void printhelp() { "-c <cipher list> Specify preferred ciphers ('-c help' to list options)\n" "-m <MAC list> Specify preferred MACs for packet verification (or '-m help')\n" #endif + "-V Version\n" #ifdef DEBUG_TRACE "-v verbose (compiled with DEBUG_TRACE)\n" #endif @@ -324,6 +325,10 @@ void cli_getopts(int argc, char ** argv) { #ifndef ENABLE_CLI_LOCALTCPFWD case 'L': #endif + case 'V': + print_version(); + exit(EXIT_SUCCESS); + break; case 'o': case 'b': next = &dummy; |