Re: [PATCH 0/8] pull: bash-completion updates

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

 



On 16 December 2015 at 11:15, Karel Zak <kzak@xxxxxxxxxx> wrote:
> On Tue, Dec 15, 2015 at 08:40:04PM +0100, Benno Schulenberg wrote:
>> On Mon, Dec 14, 2015, at 22:54, Sami Kerola wrote:
>> > The pull adds new function, print_long_opts(), to c.h and
>> > it does what one might expect a function of such name do.
>>
>> Hm.  You want to add --print-long-opts to almost all commands?
>
> It seems so, and I'm really not sure with this solution.

Fair enough.

>> And burden all --help outputs with listing it?  But... is this
>> option useful for users?  Or really only for bash-completion?
>
> It means that always when I press <tab> on command line then the util is
> executed with --print-long-opts. It seems expensive.
>
> From my point of view it would be enough to have tools/checkcompletion
> script to extract "struct option" from our utils and check if the options
> are also in bash-completion/<name> and in the util man page.

If this is the preference then the patchset is mostly throwaway. Oh well,
such is life. Let's see if the week after the Christmas on-call there's time to
think how to make options parsing work.

-- 
Sami Kerola
http://www.iki.fi/kerolasa/
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux