]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-restore.c
notmuch-restore: fix error message for extra positional parameter.
[notmuch] / notmuch-restore.c
index 09dd6918e8d45ab5ff1696d4f08c5975dbf4f74b..7d8f44c4d7e856a43aab854a57f8c2d0ff623774 100644 (file)
@@ -145,8 +145,8 @@ notmuch_restore_command (unused (void *ctx), int argc, char *argv[])
 
     if (opt_index < argc) {
        fprintf (stderr,
-        "Cannot read dump from more than one file: %s\n",
-                argv[optind]);
+        "Unused positional parameter: %s\n",
+                argv[opt_index]);
        return 1;
     }