diff options
Diffstat (limited to 'notmuch-dump.c')
-rw-r--r-- | notmuch-dump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch-dump.c b/notmuch-dump.c index 409c86a..126593d 100644 --- a/notmuch-dump.c +++ b/notmuch-dump.c @@ -41,6 +41,8 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[]) if (notmuch == NULL) return 1; + argc--; argv++; /* skip subcommand argument */ + if (argc && strcmp (argv[0], "--") != 0) { fprintf (stderr, "Warning: the output file argument of dump is deprecated.\n"); output = fopen (argv[0], "w"); |