Re: [PATCH] git fast-export: add --no-data option

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

 



Hi,

On Mon, 27 Jul 2009, Stephen Boyd wrote:

> Johannes Schindelin wrote:
> >
> > [PATCH] parse-opt: optionally show "--no-" option string
> >
> > It is usually better to have positive options, to avoid confusing 
> > double negations.  However, sometimes it is desirable to show the 
> > negative option in the help.
> >
> > Introduce the flag PARSE_OPT_NEGHELP to do that.
> 
> Perhaps with this documentation throw in?
> 
> diff --git a/parse-options.h b/parse-options.h
> index 90e577d..14162e9 100644
> --- a/parse-options.h
> +++ b/parse-options.h
> @@ -81,6 +81,9 @@ typedef int parse_opt_cb(const struct option *, const char *arg, int unset);
>   *   PARSE_OPT_LITERAL_ARGHELP: says that argh shouldn't be enclosed in brackets
>   *                             (i.e. '<argh>') in the help message.
>   *                             Useful for options with multiple parameters.
> + *   PARSE_OPT_NEGHELP: says that the long option should always be shown with
> + *                     the --no prefix in the usage message. Sometimes
> + *                     useful for users of OPTION_NEGBIT.
>   *
>   * `callback`::
>   *   pointer to the callback to use for OPTION_CALLBACK.
> 

Thanks.

Ciao,
Dscho

--
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]