Re: [Patch v2 4/4] cli: add standard option processing to config and setup

Subject: Re: [Patch v2 4/4] cli: add standard option processing to config and setup

Date: Tue, 07 Apr 2015 19:20:38 +0900

To: Mark Walters, notmuch@notmuchmail.org

Cc:

From: David Bremner


Mark Walters <markwalters1009@gmail.com> writes:

>
> Why "setup" here rather than argv[0] or similar? It seems inconsistent
> with the other cases.
>
> Best wishes
>
> Mark

You're right this deserves a comment. notmuch_setup_command is actually
called with argv=NULL (hence the unused (char * argv). The argument
types are constrained by the fact we use a table of function pointers to
dispatch.

d

Thread: