diff --git a/cmd/tools/vcomplete.v b/cmd/tools/vcomplete.v index 8e61755a75..555838250d 100644 --- a/cmd/tools/vcomplete.v +++ b/cmd/tools/vcomplete.v @@ -131,6 +131,7 @@ const ( '-w', '-print-v-files', '-error-limit', + '-message-limit', '-os', '-printfn', '-cflags', diff --git a/cmd/v/help/build.txt b/cmd/v/help/build.txt index fa2a0b2d40..ad870707bd 100644 --- a/cmd/v/help/build.txt +++ b/cmd/v/help/build.txt @@ -82,7 +82,7 @@ NB: the build flags are shared with the run command too: d) the function name NB: if you want to output the profile info to stdout, use `-profile -`. - -error-limit + -message-limit The maximum amount of warnings / errors / notices, that will be accumulated (defaults to 100). The checker will abort prematurely once this limit has been reached. Setting this to 0 or a negative value, will disable the limit. diff --git a/vlib/v/pref/pref.v b/vlib/v/pref/pref.v index d73d4a47ef..bdffc364f4 100644 --- a/vlib/v/pref/pref.v +++ b/vlib/v/pref/pref.v @@ -524,7 +524,7 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences } i++ } - '-message-limit' { + '-error-limit', '-message-limit' { res.message_limit = cmdline.option(current_args, arg, '5').int() i++ }