1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

pref: deprecate -error-limit in favour of the documented -message-limit option.

This commit is contained in:
Delyan Angelov 2022-12-15 10:37:57 +02:00
parent fd472d2d41
commit 3643785981
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -650,7 +650,12 @@ pub fn parse_args_and_show_errors(known_external_commands []string, args []strin
}
i++
}
'-error-limit', '-message-limit' {
'-error-limit' {
eprintln('Note: the -error-limit option is deprecated, and will be removed in 2023/01/15. Use `-message-limit N` instead.')
res.message_limit = cmdline.option(current_args, arg, '5').int()
i++
}
'-message-limit' {
res.message_limit = cmdline.option(current_args, arg, '5').int()
i++
}