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:
parent
bd37181c76
commit
948453970e
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user