v.pref: keep the -error-limit option for now too
parent
b3094b0667
commit
0be20f1556
|
@ -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',
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue