[Bash-completion-devel] RFC: complete only long options where they exist and work
Ville Skyttä
ville.skytta at iki.fi
Tue Oct 13 19:15:31 UTC 2009
On Wednesday 30 September 2009, Freddy Vulto wrote:
> 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.
If there are no objections, I plan to start doing related cleanups later this
week and document the practice in README's CONTRIBUTING section.
More information about the Bash-completion-devel
mailing list