]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-new.c
xregcomp: don't consider every regex compilation failure an internal error.
[notmuch] / notmuch-new.c
index 96a1e31e732da0b4d16cbdc374848d810904eb96..81a93500ced96e971df3562a3730e911f81819e1 100644 (file)
@@ -815,6 +815,8 @@ notmuch_new_command (void *ctx, int argc, char *argv[])
     add_files_state.verbose = 0;
     add_files_state.output_is_a_tty = isatty (fileno (stdout));
 
+    argc--; argv++; /* skip subcommand argument */
+
     for (i = 0; i < argc && argv[i][0] == '-'; i++) {
        if (STRNCMP_LITERAL (argv[i], "--verbose") == 0) {
            add_files_state.verbose = 1;