Whine if we discover an unknown option. This program doesn't use

getopt(3) (and can't be converted without breaking compatibility), and
it's very irritating to have it silently DTWT if one combines options
together (e.g., "-msS domain,server").
This commit is contained in:
Dima Dorfman 2001-07-13 14:10:09 +00:00
parent 427fc5ed6f
commit 2e2d2a1322

View File

@ -419,6 +419,8 @@ char **argv;
yp_restricted_mode(argv[i+1]);
else if (strcmp("-m", argv[i]) == 0)
yp_manycast++;
else
errx(1, "unknown option: %s", argv[i]);
}
/* blow away everything in BINDINGDIR (if it exists) */