From: David Bremner Date: Thu, 15 Nov 2012 02:42:39 +0000 (-0400) Subject: notmuch-restore: fix error message for extra positional parameter. X-Git-Tag: 0.15_rc1~176 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5aba32208f5ffe6a90b8ff46e2d3ba66f08c888f;p=notmuch.git 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. --- diff --git a/notmuch-restore.c b/notmuch-restore.c index 09dd6918..7d8f44c4 100644 --- a/notmuch-restore.c +++ b/notmuch-restore.c @@ -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; }