When we have more command-line arguments than we should have we

need to show that last value and we should use only optind for that
instead of optind+1
This commit is contained in:
Jaime Casanova
2012-08-30 02:11:48 -05:00
parent 30b124e91f
commit c2344fe843

View File

@@ -232,7 +232,7 @@ main(int argc, char **argv)
break;
default:
log_err(_("%s: too many command-line arguments (first extra is \"%s\")\n"),
progname, argv[optind + 1]);
progname, argv[optind]);
usage();
exit(ERR_BAD_CONFIG);
}