gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] tla bash completion


From: Jan Hudec
Subject: Re: [Gnu-arch-users] tla bash completion
Date: Thu, 28 Aug 2003 22:13:33 +0200
User-agent: Mutt/1.5.4i

On Thu, Aug 28, 2003 at 18:54:49 +0200, Jonas Diemer wrote:
> Hi!
> 
> I've looked at your tla completion scripts, I already have some
> suggestions:
> 
> 1. As Jason McCarty pointed out, I would leave single letter options out
> of completion. I think his argumentation is logical.  Plus there's no
> speed up for the user in completing one letter options.
> 
> 2. Currently, the script only offers options once (if prev is a
> subcommand). It should, however, also offer options if prev is an option
> to a subcommand that doesn't take an argument (we know to complete).
> I've incorporated that in your version, ask me if you want the
> diff/patch/whatever.

What about a branch with your version ;-).

> In my implementation, I assumed that the first string after tla is
> always a subcommand (I needed to get the subcommand somehow), is this
> too "static"? It can be easily fixed (at some performance cost)...

That assumption is correct. If there is a command, it's the first
argument. If there is no subcommand, there is only one option, namely
on of: -h, -H, --help, -V or --version.

-------------------------------------------------------------------------------
                                                 Jan 'Bulb' Hudec 
<address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]