Skip to content

Commit 0be20f1

Browse files
committed
v.pref: keep the -error-limit option for now too
1 parent b3094b0 commit 0be20f1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cmd/tools/vcomplete.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ const (
131131
'-w',
132132
'-print-v-files',
133133
'-error-limit',
134+
'-message-limit',
134135
'-os',
135136
'-printfn',
136137
'-cflags',

cmd/v/help/build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ NB: the build flags are shared with the run command too:
8282
d) the function name
8383
NB: if you want to output the profile info to stdout, use `-profile -`.
8484

85-
-error-limit <limit>
85+
-message-limit <limit>
8686
The maximum amount of warnings / errors / notices, that will be accumulated (defaults to 100).
8787
The checker will abort prematurely once this limit has been reached.
8888
Setting this to 0 or a negative value, will disable the limit.

vlib/v/pref/pref.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences
524524
}
525525
i++
526526
}
527-
'-message-limit' {
527+
'-error-limit', '-message-limit' {
528528
res.message_limit = cmdline.option(current_args, arg, '5').int()
529529
i++
530530
}

0 commit comments

Comments
 (0)