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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79665

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) */