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

vfmt: update help

This commit is contained in:
Alexander Medvednikov 2020-08-06 18:09:11 +02:00
parent d63daa0798
commit 3a461e7cee

View File

@ -17,6 +17,9 @@ Options:
-debug Print the kinds of encountered AST statements/expressions on stderr. -debug Print the kinds of encountered AST statements/expressions on stderr.
-verify Make sure the provided file is already formatted. Useful for checking code contributions
in CI for example.
Environment Variables: Environment Variables:
VDIFF_TOOL A command-line tool that will be executed with the original file path VDIFF_TOOL A command-line tool that will be executed with the original file path
and a temporary formatted file path as arguments. e.g. and a temporary formatted file path as arguments. e.g.
@ -27,7 +30,3 @@ Environment Variables:
`diff` command. e.g. `diff` command. e.g.
VDIFF_OPTIONS="-W 80 -y" v fmt -diff path/to/file.v /tmp/v/vfmt_file.v VDIFF_OPTIONS="-W 80 -y" v fmt -diff path/to/file.v /tmp/v/vfmt_file.v
NB: vfmt after 2020/04/01 is based on the new AST compiler code, and
thus is much faster, and more flexible than before.
It may also EAT some of your code for now, so please be careful, and
make frequent BACKUPS.