From 7090442dcc8aca0c18fb29e1a591dcbf74493eb2 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 14 Feb 2002 09:25:16 +0000 Subject: Updated client --- src/cli.gaa | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/cli.gaa') diff --git a/src/cli.gaa b/src/cli.gaa index 84ce49c76a..27b4ee04a9 100644 --- a/src/cli.gaa +++ b/src/cli.gaa @@ -1,4 +1,4 @@ -helpnode "cli help\nUsage: cli [options]" +helpnode "cli help\nUsage: cli [options] hostname" #int resume; option (r, resume) { $resume = 1 } "Connect, establish a session. Connect again and resume this session." @@ -6,8 +6,6 @@ option (r, resume) { $resume = 1 } "Connect, establish a session. Connect again #int port; option (p, port) INT "integer" { $port = $1 } "The port to connect to." -#char *hostname; -option (host) STR "hostname" { $hostname = $1 } "The host to connect to." #int nciphers; #char **ciphers; @@ -37,7 +35,11 @@ option (certtype) *STR "certtype1 certtype2..." { $ctype = $1; $nctype = @1 } "C option (l, list) { print_list(); exit(0); } "Print a list of the supported algorithms and modes." option (h, help) { gaa_help(); exit(0); } "prints this help" -init { $resume=0; $port=5556; $hostname="localhost"; $ciphers=NULL; +#int nrest_args; +#char **rest_args; +rest optional *STR "hostname" { $rest_args = $1; $nrest_args = @1 } + +init { $resume=0; $port=5556; $rest_args=NULL; $nrest_args=0; $ciphers=NULL; $kx=NULL; $comp=NULL; $macs=NULL; $ctype=NULL; $nciphers=0; $nkx=0; $ncomp=0; $nmacs=0; $nctype = 0; } -- cgit v1.2.1