about summary refs log tree commit diff
path: root/Completion/Unix/Command/_telnet
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2014-10-14 23:03:40 +0200
committerOliver Kiddle <opk@zsh.org>2014-10-14 23:04:45 +0200
commit13fc579343b24d298fb8905933b6000d7fcda114 (patch)
treecbc1000696357438714107635f93166bcab76d3a /Completion/Unix/Command/_telnet
parent66320ca93a717467a0ed0d34da4c06257953aa50 (diff)
downloadzsh-13fc579343b24d298fb8905933b6000d7fcda114.tar.gz
zsh-13fc579343b24d298fb8905933b6000d7fcda114.tar.xz
zsh-13fc579343b24d298fb8905933b6000d7fcda114.zip
33467: correct return status on functions and numerous other minor fixes
Diffstat (limited to 'Completion/Unix/Command/_telnet')
-rw-r--r--Completion/Unix/Command/_telnet24
1 files changed, 12 insertions, 12 deletions
diff --git a/Completion/Unix/Command/_telnet b/Completion/Unix/Command/_telnet
index c7ab34f98..1674eedd8 100644
--- a/Completion/Unix/Command/_telnet
+++ b/Completion/Unix/Command/_telnet
@@ -12,8 +12,8 @@ if (( ! $+_telnet_args )); then
   local help="$(_call_program options 'telnet -\?' < /dev/null 2>&1)"
   local -A optionmap
   optionmap=(
-    '*\[-4\]*' '-4[Force IPv4 address resolution]'
-    '*\[-6\]*' '-6[Force IPv6 address resolution]'
+    '*\[-4\]*' '-4[force IPv4 address resolution]'
+    '*\[-6\]*' '-6[force IPv6 address resolution]'
     '*\[-8\]*' '-8[allow 8-Bit data]'
     '*\[-E\]*' '-E[disable an escape character]'
     '*\[-K\]*' '-K[no automatic login]'
@@ -52,16 +52,16 @@ _arguments -C -s \
 case "$state" in
 ssl)
   _values -w 'SSL parameter' \
-    'debug[Send SSL debugging info to stderr]' \
-    '(nossl)ssl[Negotiate SSL connection]' \
-    '(ssl)nossl[Switch off SSL negotiation]' \
-    'certrequired[Require server certificate]' \
-    'secure[No fallback to unencrypted mode]' \
-    'verbose[Be verbose about certificates, etc.]' \
-    'verify[Set SSL verify flags]:int:' \
-    'cert[Specify certificate file]:certificate file:_path_files' \
-    'key[Specify key file]:key file:_path_files' \
-    'cipher[Set preferred cipher list]:ciphers:'
+    'debug[send SSL debugging info to stderr]' \
+    '(nossl)ssl[negotiate SSL connection]' \
+    '(ssl)nossl[switch off SSL negotiation]' \
+    'certrequired[require server certificate]' \
+    'secure[no fallback to unencrypted mode]' \
+    'verbose[be verbose about certificates, etc.]' \
+    'verify[set SSL verify flags]:int' \
+    'cert[specify certificate file]:certificate file:_path_files' \
+    'key[specify key file]:key file:_path_files' \
+    'cipher[set preferred cipher list]:cipher' && ret=0
   ;;
 
 hosts)