Dot not try to work after parsing if --only-parse is given.
authorJean Privat <jean@pryen.org>
Tue, 20 Jan 2009 18:21:17 +0000 (13:21 -0500)
committerJean Privat <jean@pryen.org>
Tue, 20 Jan 2009 18:21:17 +0000 (13:21 -0500)
src/abstracttool.nit

index a2ad03b..3d4d80e 100644 (file)
@@ -55,7 +55,7 @@ special ToolContext
                        dump_context_info
                end
 
-               if not to_do.is_empty and not opt_only_metamodel.value then
+               if not to_do.is_empty and not opt_only_metamodel.value and not opt_only_parse.value then
                        perform_work(to_do)
                end
        end