mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-25 10:54:52 +01:00
CLI: update call to notmuch_help_command for new calling conventions.
When I changed the calling convention to pass in all but the zero-th argument to subcommands, I missed this one call, resulting in a segmentation fault. As a bonus, the syntax "notmuch --help foo" is now equivalent to "notmuch help foo".
This commit is contained in:
parent
9fbc912cc9
commit
879c2a57a0
1 changed files with 1 additions and 1 deletions
|
@ -621,7 +621,7 @@ main (int argc, char *argv[])
|
|||
return notmuch (local);
|
||||
|
||||
if (STRNCMP_LITERAL (argv[1], "--help") == 0)
|
||||
return notmuch_help_command (NULL, 0, NULL);
|
||||
return notmuch_help_command (NULL, argc - 1, &argv[1]);
|
||||
|
||||
if (STRNCMP_LITERAL (argv[1], "--version") == 0) {
|
||||
printf ("notmuch " STRINGIFY(NOTMUCH_VERSION) "\n");
|
||||
|
|
Loading…
Reference in a new issue