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:
parent
fd472d2d41
commit
3643785981
@ -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++
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user