1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vet: add -W flag and detailed help (#9331)

This commit is contained in:
Lukas Neubert
2021-03-16 18:49:06 +01:00
committed by GitHub
parent 6f550ebbdc
commit 39a9beb9e0
3 changed files with 15 additions and 2 deletions

View File

@@ -49,4 +49,4 @@ Use "v help <command>" for more information about a command, example: `v help bu
Use "v help other" to see less frequently used commands.
Note: Help is required to write more help topics.
Only build, new, init, doc, fmt, run, test, search, install, remove, update, bin2v, check-md are properly documented currently.
Only build, new, init, doc, fmt, vet, run, test, search, install, remove, update, bin2v, check-md are properly documented currently.

11
cmd/v/help/vet.txt Normal file
View File

@@ -0,0 +1,11 @@
Usage:
v vet [options] path_to_source.v [path_to_other_source.v]
v vet [options] path/to/dir [path/to/other_dir]
Reports suspicious code constructs.
Options:
-W Exit with code 1, even if vet only reported warnings. Useful for checks in CI.
-hide-warnings Do not print warnings to stderr.
-v, -verbose Enable verbose logging.
-force (NB: vet development only!) Do not skip the vet regression tests.