summaryrefslogtreecommitdiff
path: root/wildtest.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2003-07-05 19:21:41 +0000
committerWayne Davison <wayned@samba.org>2003-07-05 19:21:41 +0000
commit9a17dddbc5b1cfd6ad83d20c4616c97614a83dde (patch)
tree0f5e386bff12efdb175d59c69128b5f082d819be /wildtest.c
parent277d99e8c9a87fd5e48499fcb16e572444baecb1 (diff)
downloadrsync-9a17dddbc5b1cfd6ad83d20c4616c97614a83dde.tar.gz
rsync-9a17dddbc5b1cfd6ad83d20c4616c97614a83dde.tar.bz2
rsync-9a17dddbc5b1cfd6ad83d20c4616c97614a83dde.zip
Fixed the output of popt errors and changed our one option to be
--iterations (-i).
Diffstat (limited to 'wildtest.c')
-rw-r--r--wildtest.c6
1 files changed, 4 insertions, 2 deletions
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);
}
}