[Bash-completion-devel] RFC: complete only long options where they exist and work

Freddy Vulto fvulto at gmail.com
Wed Sep 30 19:41:56 UTC 2009


On Tue, Sep 29, 2009 at 7:28 PM, Ville Skyttä <ville.skytta at iki.fi> wrote:
> I'd like to suggest that when we complete available options, we'd generally
> offer only the long options as completions if an option has a short
> option/alias/other counterpart and if it is known that the long option works
> well enough (basically if the long option takes no arguments, or takes an
> argument that can be separated with space (not only "=", but possibly both),
> it is ok).  For example, if let's say -f, -F, and --foo are equivalent, we
> offer only --foo out of them when $cur = -*.

+1
Hadn't thought of it, but completing one-letter options makes little
sense indeed.

Freddy Vulto
http://fvue.nl



More information about the Bash-completion-devel mailing list