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

Re: PATCH: update a few completion functions

On Fri, Jun 24, 2005 at 04:43:20PM +0200, Oliver Kiddle wrote:
> This updates _wget for wget 1.10 and improves the iwconfig, mii-tool and
> tune2fs completions. Be careful when using _values within _arguments. It
> needs a description as it's first argument and any colons need to be
> quoted to hide them from _arguments.
> Oliver


> Index: Completion/Unix/Command/_wget
> ===================================================================
> RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_wget,v
> retrieving revision 1.10
> diff -u -r1.10 _wget
> --- Completion/Unix/Command/_wget	24 Jun 2005 12:44:00 -0000	1.10
> +++ Completion/Unix/Command/_wget	24 Jun 2005 14:38:32 -0000


> +  '--no-glob[turn off FTP file name globbing.]' \
> +  '--no-passive-ftp' \
>    '--retr-symlinks' \
> -  '(--glob -g)'{--glob=,-g+}'[turn file globbing on or off]:glob:(on off)' \

This option still exists, though the --help output is not very clear
about it.

>From the wget-1.10/NEWS file:

** Options that previously unconditionally set or unset various flags
are now boolean options that can be invoked as either `--OPTION' or
`--no-OPTION'.  Options that required an argument "on" or "off" have
also been changed this way, but they still accept the old syntax for
backward compatibility.  For example, instead of `--glob=off' you can
write `--no-glob'.

Allowing `--no-OPTION' for every `--OPTION' and the other way around
is useful because it allows the user to override non-default behavior
specified via `.wgetrc'



Messages sorted by: Reverse Date, Date, Thread, Author