X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-dump.c;h=126593d177d50f5b84f0d84636ae015853fe7298;hp=ac5d0742e0f9c61d74eca06633e199ee13491f47;hb=7a87830f5eb32373bc17235e9d178d383830dc64;hpb=09beff1def1daa9887679723205855ff7da8a297 diff --git a/notmuch-dump.c b/notmuch-dump.c index ac5d0742..126593d1 100644 --- a/notmuch-dump.c +++ b/notmuch-dump.c @@ -41,7 +41,10 @@ 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"); if (output == NULL) { fprintf (stderr, "Error opening %s for writing: %s\n",