notmuch-restore: fix error message for extra positional parameter.

Note that a single positional parameter will take this code path also,
so the old message really makes no sense anymore.
This commit is contained in:
David Bremner 2012-11-14 22:42:39 -04:00
parent fe13a55421
commit 5aba32208f

View file

@ -145,8 +145,8 @@ notmuch_restore_command (unused (void *ctx), int argc, char *argv[])
if (opt_index < argc) { if (opt_index < argc) {
fprintf (stderr, fprintf (stderr,
"Cannot read dump from more than one file: %s\n", "Unused positional parameter: %s\n",
argv[optind]); argv[opt_index]);
return 1; return 1;
} }