goto DONE;
}
- 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)) {
/*
* Pass the first positional argument as argv[1] so the help
* command can give help for it. The help command ignores the