From: Alexis Laferrière Date: Tue, 1 Sep 2015 18:28:41 +0000 (-0400) Subject: src & contrib: update users of `OptionContext::get_errors` X-Git-Tag: v0.7.8~44^2~2 X-Git-Url: http://nitlanguage.org src & contrib: update users of `OptionContext::get_errors` Signed-off-by: Alexis Laferrière --- diff --git a/contrib/neo_doxygen/src/neo_doxygen.nit b/contrib/neo_doxygen/src/neo_doxygen.nit index 431809c..0713567 100644 --- a/contrib/neo_doxygen/src/neo_doxygen.nit +++ b/contrib/neo_doxygen/src/neo_doxygen.nit @@ -199,7 +199,7 @@ class NeoDoxygenCommand end option_context.parse(args) - var errors = option_context.get_errors + var errors = option_context.errors var rest = option_context.rest if errors.is_empty and not opt_help.value and rest.length != 2 then diff --git a/src/toolcontext.nit b/src/toolcontext.nit index 47366b3..93479ea 100644 --- a/src/toolcontext.nit +++ b/src/toolcontext.nit @@ -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