Re: [PATCH 2/2] cli: add support for notmuch command --help

Subject: Re: [PATCH 2/2] cli: add support for notmuch command --help

Date: Tue, 10 Mar 2015 10:06:27 +0200

To: David Bremner, Jani Nikula, notmuch@notmuchmail.org

Cc:

From: Tomi Ollila


On Mon, Mar 09 2015, David Bremner <david@tethera.net> wrote:

> Jani Nikula <jani@nikula.org> writes:
>
>> -    if (print_help) {
>> +    /* Handle notmuch --help [command] and notmuch command --help. */
>> +    if (print_help ||
>> +	(opt_index + 1 < argc && strcmp (argv[opt_index + 1], "--help") == 0)) {
>
> I like the feature, and I can live with the implementation. I'm reminded

This part above I agree :D

> that you once proposed a more sophisticated way of handling shared
> arguments for subcommands, but that foundered on a reef of bikeshedding.
>
> d

Tomi

Thread: