X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d5c973ccb7da1bc87c5caa5d5ac594bc217016f7..84229c7ac9cce2af0be47636773f881eed88f6bc:/wildtest.c diff --git a/wildtest.c b/wildtest.c index c7aa58db..c90e4054 100644 --- a/wildtest.c +++ b/wildtest.c @@ -22,7 +22,7 @@ int output_iterations = 0; static struct poptOption long_options[] = { /* longName, shortName, argInfo, argPtr, value, descrip, argDesc */ - {"count", 'c', POPT_ARG_NONE, &output_iterations, 0, 0, 0}, + {"iterations", 'i', POPT_ARG_NONE, &output_iterations, 0, 0, 0}, {0,0,0,0, 0, 0, 0} }; @@ -66,7 +66,9 @@ main(int argc, char **argv) while ((opt = poptGetNextOpt(pc)) != -1) { switch (opt) { default: - fprintf(stderr, "Unknown option: `%c'\n", opt); + fprintf(stderr, "%s: %s\n", + poptBadOption(pc, POPT_BADOPTION_NOALIAS), + poptStrerror(opt)); exit(1); } }