From: Tim Kientzle Date: Sun, 13 Dec 2009 19:27:41 +0000 (-0500) Subject: More explanation of bad arguments. X-Git-Tag: v2.8.0~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aca039d8b2475b62bced6108667e7bc931f32a68;p=thirdparty%2Flibarchive.git More explanation of bad arguments. SVN-Revision: 1731 --- diff --git a/tar/test/main.c b/tar/test/main.c index 77416da44..33355855c 100644 --- a/tar/test/main.c +++ b/tar/test/main.c @@ -1909,6 +1909,7 @@ main(int argc, char **argv) #ifdef PROGRAM testprogfile = option_arg; #else + fprintf(stderr, "-p option not permitted\n"); usage(progname); #endif break; @@ -1922,6 +1923,8 @@ main(int argc, char **argv) verbosity++; break; default: + fprintf(stderr, "Unrecognized option '%c'\n", + option); usage(progname); } } @@ -1931,8 +1934,11 @@ main(int argc, char **argv) * Sanity-check that our options make sense. */ #ifdef PROGRAM - if (testprogfile == NULL) + if (testprogfile == NULL) { + fprintf(stderr, "Program executable required\n"); usage(progname); + } + { char *testprg; #if defined(_WIN32) && !defined(__CYGWIN__)