From cf7d86e7b27f85728c9cc44ee95a8bdc48fe8d5e Mon Sep 17 00:00:00 2001 From: Paul Ackersviller Date: Mon, 7 May 2007 03:15:48 +0000 Subject: Merge of workers/21423. --- Completion/Unix/Command/_unexpand | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Completion/Unix/Command/_unexpand (limited to 'Completion/Unix') diff --git a/Completion/Unix/Command/_unexpand b/Completion/Unix/Command/_unexpand new file mode 100644 index 000000000..bc26a1be2 --- /dev/null +++ b/Completion/Unix/Command/_unexpand @@ -0,0 +1,42 @@ +#compdef unexpand +# +# $Id: _unexpand,v 1.1.2.2 2007/05/07 03:15:48 packersv Exp $ +# +# Copyright (C) 2005 Travis L. Spencer +# ALL RIGHTS RESERVED +# +# See the file LICENCE in the root of the zsh distribution for +# licensing information. +# + +local all tabs ret=1 +local -a args + +all="convert all whitespace, instead of just initial whitespace" +tabs="use comma separated list of tab positions" +args=( + "(--all)-a[$all]" + "(--tabs)-t[$tabs]:tablist" + "*:file:_files" +) + +if _pick_variant gnu="Free Soft" unix --version; then + args+=( + "(-a)--all[$all]" + "--first-only[convert only leading sequences of whitespace]" + "(-t)--tabs=[$tabs]:tablist" + "(* -)--help[display help message and exit]" + "(* -)--version[output version information and exit]" + ) +fi + +_arguments "$args[@]" && ret=0 + +return ret + +: <