Re: [PATCH 1/2] parse-options: Add support for dumping out long options

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

 



Hi,


On Wed, Apr 11, 2012 at 03:29:24AM -0700, Stephen Boyd wrote:
> The bash completion script wants to know what the long options are for a
> certain command at runtime. Add a magical long option that nobody could
> possibly ever use (--dump-raw-long-options) to get this information.
> 
> Some example output:
> 
>  $ git clone --dump-raw-long-options
>  --no-verbose --no-quiet --progress --no-progress --no-checkout
>  --checkout --bare --no-bare --mirror --no-mirror --local --no-local
>  --no-hardlinks --hardlinks --shared --no-shared --recursive
>  --no-recursive --recurse-submodules --no-recurse-submodules --template=
>  --no-template --reference= --no-reference --origin= --no-origin
>  --branch= --no-branch --upload-pack= --no-upload-pack --depth=
>  --no-depth --single-branch --no-single-branch --separate-git-dir=
>  --no-separate-git-dir --config= --no-config
> 

I think this is a good idea; there are many completion functions that
fell behind and lack an option or two.

However, in the completion script we deliberately miss options like
'--force', but with your series such options will be offered, too.


Best,
Gábor

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]