[PATCH 1/2] cli: fix top level --help combined with other options

David Bremner david at tethera.net
Mon Mar 9 00:06:49 PDT 2015


Jani Nikula <jani at nikula.org> writes:

> -	ret = notmuch_help_command (NULL, argc - 1, &argv[1]);
> +	/*
> +	 * Pass the first positional argument as argv[1] so the help
> +	 * command can give help for it. The help command ignores the
> +	 * argv[0] passed to it.
> +	 */
> +	ret = notmuch_help_command (NULL, argc - opt_index + 1,
> +				    argv + opt_index - 1);
>  	goto DONE;
>      }

LGTM


More information about the notmuch mailing list