From: Alexis Laferrière Date: Tue, 1 Sep 2015 18:25:56 +0000 (-0400) Subject: contrib/objcwrapper: print opts errors, not just usage X-Git-Tag: v0.7.8~42^2~12 X-Git-Url: http://nitlanguage.org contrib/objcwrapper: print opts errors, not just usage Signed-off-by: Alexis Laferrière --- diff --git a/contrib/objcwrapper/src/objcwrapper.nit b/contrib/objcwrapper/src/objcwrapper.nit index 0b8bb72..6ec6b6b 100644 --- a/contrib/objcwrapper/src/objcwrapper.nit +++ b/contrib/objcwrapper/src/objcwrapper.nit @@ -32,7 +32,9 @@ opts.add_option(opt_help, opt_output, opt_init_as_methods, opt_gcc_options) opts.parse args if opts.errors.not_empty or opts.rest.is_empty or opt_help.value then - print """ + if opts.errors.not_empty then print_error opts.errors.join("\n") + + print_error """ Usage: objcwrapper [options] input_file [other_input_file [...]] Options:""" opts.usage