From 63c359e09a4694fecf43a580fc4b2829ca601ad1 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 8 May 2012 15:33:18 -0400 Subject: [PATCH] modelbuilder: honor --only-parse Signed-off-by: Jean Privat --- src/modelbuilder.nit | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modelbuilder.nit b/src/modelbuilder.nit index 1c87722..a55f02e 100644 --- a/src/modelbuilder.nit +++ b/src/modelbuilder.nit @@ -105,6 +105,11 @@ class ModelBuilder self.toolcontext.check_errors + if self.toolcontext.opt_only_parse.value then + self.toolcontext.info("--only-parse: stop processing", 2) + return new Array[MModule] + end + # Build the model self.toolcontext.info("*** BUILD MODEL ***", 1) self.build_all_classes -- 1.7.9.5