summaryrefslogtreecommitdiff
path: root/tools/ward.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-12-02 20:58:56 (GMT)
committerJohn Denker <jsd@av8n.com>2012-12-02 20:58:56 (GMT)
commitee93a6480215a104be42aca282dcc658ea5ce510 (patch)
tree2e4195311410676a41bc6fe2fdafd14d334ecfb0 /tools/ward.c
parent46ba7e646390dbd5eb896525e6dac27f884096cb (diff)
fix some bit-rot; rename -error-exit to -strict
Diffstat (limited to 'tools/ward.c')
-rw-r--r--tools/ward.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/ward.c b/tools/ward.c
index abea289..e5667a4 100644
--- a/tools/ward.c
+++ b/tools/ward.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,9 @@ 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("-maxsize", 1)) {
mysk.maxsize = atoi(ARGS.shift().c_str());
} else if (arg.substr(0,1) == "-") {