X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-new.c;h=81a93500ced96e971df3562a3730e911f81819e1;hp=96a1e31e732da0b4d16cbdc374848d810904eb96;hb=ed20210b6db0b237d48765351cb99b87be7a0509;hpb=520c9c3131b84e30e0d31084a94c55c265f2042f diff --git a/notmuch-new.c b/notmuch-new.c index 96a1e31e..81a93500 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -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;