From 3e4e0a35e380c3d7735bfef298be21a718c1b8c0 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 4 Feb 2021 17:23:58 +0200 Subject: [PATCH] vvet: fix silent exit when invoked on a single .v file. --- cmd/tools/vvet/vvet.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/tools/vvet/vvet.v b/cmd/tools/vvet/vvet.v index e84664d41d..f617c00d67 100644 --- a/cmd/tools/vvet/vvet.v +++ b/cmd/tools/vvet/vvet.v @@ -71,6 +71,9 @@ fn main() { } } } + if os.is_file(path) { + vet.vet_file(path, false) + } if os.is_dir(path) { vet.vprintln("vetting folder: '$path' ...") vfiles := os.walk_ext(path, '.v')