Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _knock
- X-seq: zsh-workers 20940
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _knock
- Date: Sun, 6 Mar 2005 22:02:55 -0500
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I'm putting this in Unix even though there appears to be a Win32
knock.exe.
Index: Completion/Unix/Command/_knock
===================================================================
RCS file: Completion/Unix/Command/_knock
diff -N Completion/Unix/Command/_knock
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_knock 7 Mar 2005 03:02:23 -0000
@@ -0,0 +1,9 @@
+#compdef knock
+
+_arguments \
+ '(-u --udp)'{-u,--udp}'[UDP mode]' \
+ '(-v --verbose)'{-v,--verbose}'[verbose]' \
+ '(-V --version -h --help -u --udp -v --verbose)'{-V,--version}'[display version]' \
+ '(-h --help -u --udp -v --verbose -V --version)'{-h,--help}'[help]' \
+ '1:host:_hosts' \
+ '*:port:_ports'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author