Skip to content

Commit

Permalink
vfmt: update help
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov committed Aug 6, 2020
1 parent d63daa0 commit 3a461e7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/v/help/fmt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Options:

-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:
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.
Expand All @@ -27,7 +30,3 @@ Environment Variables:
`diff` command. e.g.
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.

0 comments on commit 3a461e7

Please sign in to comment.