v.pref: keep the -error-limit option for now too

pull/11192/head
Delyan Angelov 2021-08-15 13:46:50 +03:00
parent b3094b0667
commit 0be20f1556
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
3 changed files with 3 additions and 2 deletions

View File

@ -131,6 +131,7 @@ const (
'-w', '-w',
'-print-v-files', '-print-v-files',
'-error-limit', '-error-limit',
'-message-limit',
'-os', '-os',
'-printfn', '-printfn',
'-cflags', '-cflags',

View File

@ -82,7 +82,7 @@ NB: the build flags are shared with the run command too:
d) the function name d) the function name
NB: if you want to output the profile info to stdout, use `-profile -`. 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 maximum amount of warnings / errors / notices, that will be accumulated (defaults to 100).
The checker will abort prematurely once this limit has been reached. The checker will abort prematurely once this limit has been reached.
Setting this to 0 or a negative value, will disable the limit. Setting this to 0 or a negative value, will disable the limit.

View File

@ -524,7 +524,7 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences
} }
i++ i++
} }
'-message-limit' { '-error-limit', '-message-limit' {
res.message_limit = cmdline.option(current_args, arg, '5').int() res.message_limit = cmdline.option(current_args, arg, '5').int()
i++ i++
} }