~mcf/dnssec-rr

a76cddac9384b3c602fe9b9be56b0927d4da14ea — Michael Forney 3 years ago 0f70bd1
nsec: Fail on unexpected options
1 files changed, 6 insertions(+), 3 deletions(-)

M nsec.c
M nsec.c => nsec.c +6 -3
@@ 3,19 3,22 @@
#include <string.h>
#include <err.h>
#include "dnssec.h"
#include "arg.h"

static void
usage(void)
{
	fprintf(stderr, "usage: nsec [zone]\n");
	fprintf(stderr, "usage: nsec [zonefile]\n");
	exit(2);
}

int
main(int argc, char *argv[])
{
	if (argc > 0)
		--argc, ++argv;
	ARGBEGIN {
	default:
		usage();
	} ARGEND
	if (argc > 1)
		usage();