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

vfmt: more fixes; enable v fmt and v fmt -w

This commit is contained in:
Alexander Medvednikov
2020-04-05 03:37:38 +02:00
parent 97db4c0e9a
commit 2a06263a5b
5 changed files with 33 additions and 27 deletions

View File

@@ -43,10 +43,10 @@ const (
)
fn main() {
if os.getenv('VFMT_ENABLE') == '' {
eprintln('v fmt is disabled for now')
exit(1)
}
//if os.getenv('VFMT_ENABLE') == '' {
//eprintln('v fmt is disabled for now')
//exit(1)
//}
toolexe := os.executable()
util.set_vroot_folder(os.dir(os.dir(os.dir(toolexe))))
args := join_flags_and_argument()
@@ -54,7 +54,7 @@ fn main() {
is_2: '-2' in args
is_c: '-c' in args
is_l: '-l' in args
is_w: '-ww' in args
is_w: '-w' in args
is_diff: '-diff' in args
is_verbose: '-verbose' in args || '--verbose' in args
is_all: '-all' in args || '--all' in args