]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-show.c
cli: add options --offset and --limit to notmuch search
[notmuch] / notmuch-show.c
index 912999e1a65e645b7b893ac49d1df55ad197d51c..603992a612448c8892888580a4fae68f5aa123dc 100644 (file)
@@ -936,6 +936,8 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[]))
     params.cryptoctx = NULL;
     params.decrypt = 0;
 
+    argc--; argv++; /* skip subcommand argument */
+
     for (i = 0; i < argc && argv[i][0] == '-'; i++) {
        if (strcmp (argv[i], "--") == 0) {
            i++;