X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-search.c;h=327e144564de48e0b339036528505d5a227bc40a;hp=39d55bfeb25e33add37d2d017f36551d5ec2f842;hb=HEAD;hpb=e3b1a0a6a59691f6be9fd0cb3b0d01bb9a7fe2b7 diff --git a/notmuch-search.c b/notmuch-search.c index 39d55bfe..327e1445 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -722,7 +722,8 @@ _notmuch_search_prepare (search_context_t *ctx, int argc, char *argv[]) if (print_status_database ("notmuch search", ctx->notmuch, notmuch_query_create_with_syntax (ctx->notmuch, query_str, - ctx->query_syntax, &ctx->query))) + shared_option_query_syntax (), + &ctx->query))) return EXIT_FAILURE; notmuch_query_set_sort (ctx->query, ctx->sort); @@ -788,10 +789,6 @@ static const notmuch_opt_desc_t common_options[] = { { "text", NOTMUCH_FORMAT_TEXT }, { "text0", NOTMUCH_FORMAT_TEXT0 }, { 0, 0 } } }, - { .opt_keyword = &search_context.query_syntax, .name = "query", .keywords = - (notmuch_keyword_t []){ { "infix", NOTMUCH_QUERY_SYNTAX_XAPIAN }, - { "sexp", NOTMUCH_QUERY_SYNTAX_SEXP }, - { 0, 0 } } }, { .opt_int = ¬much_format_version, .name = "format-version" }, { } };