Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _knock



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