summaryrefslogtreecommitdiff
path: root/src/cli.gaa
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-02-14 09:25:16 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-02-14 09:25:16 +0000
commit7090442dcc8aca0c18fb29e1a591dcbf74493eb2 (patch)
tree141cd44dcf80faaffd7ca2b4799b5c02b84827c1 /src/cli.gaa
parent2dccf41aa0a5fd9c3ac85c16eab21dc912011313 (diff)
downloadgnutls-7090442dcc8aca0c18fb29e1a591dcbf74493eb2.tar.gz
Updated client
Diffstat (limited to 'src/cli.gaa')
-rw-r--r--src/cli.gaa10
1 files changed, 6 insertions, 4 deletions
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; }