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

vfmt: improve the documentation for the -c flag (#7196)

This commit is contained in:
Lukas Neubert 2020-12-09 09:58:37 +01:00 committed by GitHub
parent ae062b1146
commit a9c71a89cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,8 +4,8 @@ Usage:
Formats the given V source files, then prints their formatted source to stdout. Formats the given V source files, then prints their formatted source to stdout.
Options: Options:
-c Check if file is already formatted. -c Check if a file is already formatted. If not, print the filepath and exit with code 2.
If it is not, print filepath, and exit with code 2. Compared to -verify it is quicker but has a small trade-off in precision.
-diff Display the differences between the formatted source(s) and the original source(s). -diff Display the differences between the formatted source(s) and the original source(s).
This will attempt to find a working `diff` command automatically unless you This will attempt to find a working `diff` command automatically unless you