X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-search.c;h=6f04d9a45d719a37d7c17056d3a3e623560232db;hb=968965635197a6646688c0edd759f0c4f74181cb;hp=faccaf7deec10961f5f2c2c7bdc5fa9bef4521f7;hpb=fa0c0d0e668961aa9dce884ee7b325095b44ca47;p=notmuch diff --git a/notmuch-search.c b/notmuch-search.c index faccaf7d..6f04d9a4 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -395,6 +395,8 @@ notmuch_search_command (void *ctx, int argc, char *argv[]) int i, ret; output_t output = OUTPUT_SUMMARY; + argc--; argv++; /* skip subcommand argument */ + for (i = 0; i < argc && argv[i][0] == '-'; i++) { if (strcmp (argv[i], "--") == 0) { i++;