From 3a461e7cee4e28323fe1bb9a02d80e16c5286d47 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 6 Aug 2020 18:09:11 +0200 Subject: [PATCH] vfmt: update help --- cmd/v/help/fmt.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/v/help/fmt.txt b/cmd/v/help/fmt.txt index b9f399db6c0192..1efbce0476129a 100644 --- a/cmd/v/help/fmt.txt +++ b/cmd/v/help/fmt.txt @@ -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. @@ -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. \ No newline at end of file