From: Stephen Boyd Date: Thu, 12 Apr 2012 07:02:28 GMT Subject: Re: [PATCH 1/2] parse-options: Add support for dumping out long options Message-ID: <4F867E04.8000501@gmail.com> In-Reply-To: <20120411125921.GC3161@burratino> On 04/11/2012 05:59 AM, Jonathan Nieder wrote: > 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. > > Neat. Probably should be documented: > > diff --git i/Documentation/gitcli.txt w/Documentation/gitcli.txt > index f734f97b..0de074ec 100644 > --- i/Documentation/gitcli.txt > +++ w/Documentation/gitcli.txt > @@ -96,6 +96,11 @@ usage: git describe [options] * > are deprecated, and such options are hidden from the default usage. This > option gives the full list of options. > > +--dump-raw-long-options:: > + prints a space-separated list of supported options, including > + negated `--no-` forms. Long options taking an argument are > + printed with a trailing equal sign, as in "`--depth=`". > + > > Negating options > ~~~~~~~~~~~~~~~~ Thanks. Squashed in.