From aca039d8b2475b62bced6108667e7bc931f32a68 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Sun, 13 Dec 2009 14:27:41 -0500 Subject: [PATCH] More explanation of bad arguments. SVN-Revision: 1731 --- tar/test/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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__) -- 2.47.3