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

David Bremner david at tethera.net
Mon Mar 9 00:14:17 PDT 2015


Jani Nikula <jani at 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
that you once proposed a more sophisticated way of handling shared
arguments for subcommands, but that foundered on a reef of bikeshedding.

d


More information about the notmuch mailing list