From: Jean Privat Date: Fri, 28 Nov 2014 02:54:55 +0000 (-0500) Subject: nitls: bind the option --keep-going on ToolContext::keep_going X-Git-Tag: v0.7~83^2~10 X-Git-Url: http://nitlanguage.org nitls: bind the option --keep-going on ToolContext::keep_going Signed-off-by: Jean Privat --- diff --git a/src/nitls.nit b/src/nitls.nit index 54320cc..cde9656 100644 --- a/src/nitls.nit +++ b/src/nitls.nit @@ -73,6 +73,8 @@ if sum > 1 then exit 1 end +tc.keep_going = opt_keep.value + var model = new Model var mb = new ModelBuilder(model, tc) @@ -106,7 +108,7 @@ else for a in files do var mp = mb.identify_file(a) if mp == null then - if not opt_keep.value then tc.check_errors + tc.check_errors end end end