no way to distinguish between an extra arg, and a -x foo arg, or else
our getopt is broken at the moment.
I can't dig further into getopt right now, so this will wait for another
day or another hacker to resolve.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92243
13f79535-47bb-0310-9956-
ffa450edef68
if (rv != APR_EOF) {
usage(process);
}
-// C:\apache2\bin\apache.exe: illegal option -- q
+
/* 'extra' argument ignored? then we die */
if (opt->ind < opt->argc) {
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,
- "Unused argument %s\n",
- opt->argv[opt->ind]);
+ "%s: Unused argument -- %s\n",
+ apr_filename_of_pathname(argv[0]), opt->argv[opt->ind]);
usage(process);
}