Fixed removal of unknown options. For options files with only a single

known option, unknown options following the known option were not
removed.  Now I think only unknown options in unknown options files
are not removed.  This is harmless because unknown options files should
not be used, but removing the files would be cleaner.
This commit is contained in:
Bruce Evans 2000-01-08 14:34:50 +00:00
parent 1e6f93d8f5
commit ab55b0e78f

View File

@ -194,7 +194,7 @@ do_option(name)
for (ol = otab; ol != 0; ol = ol->o_next)
if (eq(inw, ol->o_name))
break;
if (!seen && !ol) {
if (!eq(inw, name) && !ol) {
printf("WARNING: unknown option `%s' removed from %s\n",
inw, file);
tidy++;