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

vfmt: fix early exit when verifying multiple files; update help (#7611)

This commit is contained in:
Lukas Neubert
2020-12-27 14:36:59 +01:00
committed by GitHub
parent 06fdf34214
commit e8b5fa2134
2 changed files with 14 additions and 5 deletions

View File

@@ -1,7 +1,9 @@
Usage:
v fmt [options] path_to_source.v [path_to_other_source.v]
v fmt [options] path/to/dir [path/to/other_dir]
Formats the given V source files, then prints their formatted source to stdout.
Formats the given V source files or recursively formats all files in the directory,
then prints their formatted source to stdout.
Options:
-c Check if a file is already formatted. If not, print the filepath and exit with code 2.