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

Re: PATCH: Re: _arguments parsing of --help output



On Jul 26, 10:38am, Sven Wischnowsky wrote:
} Subject: PATCH: Re: _arguments parsing of --help output
}
}   zstyle ':completion:*:option(-*|s)' auto-description 'specify %d'
} 
}   % tst --
}   --e -- specify ea
}   --b  --e  --p
} 
} I.e. --e is listed twice, the first one is the `--e:ea:(1 2)' and the
} second one is the auto-detected one.
} 
} Should we make _arguments use only the first, last or most `specifc'
} one (`most specific' could mean that it describes more arguments than
} the other specs for that same option)?

Hm.  If somebody actually puts a description of the same option both
before and after the `--' in the _arguments positional-parameter list,
I think they should get both descriptions included in the listing.  In
other cases I suppose I'd prefer that it take only the user-supplied
description (not the parsed --help one), but I don't think it's very
important to change the current behavior.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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