From ee93a6480215a104be42aca282dcc658ea5ce510 Mon Sep 17 00:00:00 2001 From: John Denker Date: Sun, 2 Dec 2012 13:58:56 -0700 Subject: fix some bit-rot; rename -error-exit to -strict --- tools/skrewt.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tools/skrewt.c') diff --git a/tools/skrewt.c b/tools/skrewt.c index abea289..f7dd83b 100644 --- a/tools/skrewt.c +++ b/tools/skrewt.c @@ -28,7 +28,7 @@ void usage(const int sts){ " Options\n" " -help print this msg (and exit immediately).\n" " -maxsize ii msg size in bytes; anything bigger will be rejected.\n" -" -error-exit exit early if errors have been detected.\n" +" -strict exit early if errors have been detected.\n" "\n" " Messages containing the string '-please-bounce-this-' will be rejected.\n" " Messages with no date will be rejected.\n" @@ -97,8 +97,11 @@ int main(int _argc, const char** _argv){ if (0) { } else if (ARGS.prefix("-mid-required")) { mysk.mid_required++; - } else if (ARGS.prefix("-error-exit")) { - mysk.error_exit++; + } else if (ARGS.prefix("-error-exit") + || ARGS.prefix("-strict")) { + mysk.strictness++; + } else if (ARGS.prefix("-note", 1)) { + mysk.note = ARGS.shift(); } else if (ARGS.prefix("-maxsize", 1)) { mysk.maxsize = atoi(ARGS.shift().c_str()); } else if (arg.substr(0,1) == "-") { -- cgit v1.2.3