nitcc: detect S/R even if R/R conflict as a solution is to shift in case of S/R/R
[nit.git] / src / toolcontext.nit
index 4468d91..93479ea 100644 (file)
@@ -469,7 +469,7 @@ The Nit language documentation and the source code of its tools and libraries ma
                        exit 0
                end
 
-               var errors = option_context.get_errors
+               var errors = option_context.errors
                if not errors.is_empty then
                        for e in errors do print "Error: {e}"
                        print tooldescription
@@ -515,7 +515,7 @@ The Nit language documentation and the source code of its tools and libraries ma
                if opt_set_dummy_tool.value then
                        return "DUMMY_TOOL"
                end
-               return sys.program_name.basename("")
+               return sys.program_name.basename
        end
 
        # The identified root directory of the Nit project