mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.pref: keep the -error-limit option for now too
This commit is contained in:
parent
b3094b0667
commit
0be20f1556
@ -131,6 +131,7 @@ const (
|
||||
'-w',
|
||||
'-print-v-files',
|
||||
'-error-limit',
|
||||
'-message-limit',
|
||||
'-os',
|
||||
'-printfn',
|
||||
'-cflags',
|
||||
|
@ -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 <limit>
|
||||
-message-limit <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.
|
||||
|
@ -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++
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user