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

v.pref: fix v build file.v

This commit is contained in:
Delyan Angelov
2020-07-21 19:36:58 +03:00
parent 6dd1494008
commit 14fd7d93ca
3 changed files with 17 additions and 2 deletions

View File

@ -34,7 +34,7 @@ V supports the following commands:
list List all installed modules.
outdated Show installed modules that need updates.
* Others:
build Build a V code in the provided path (the default, so you can skip the word `build`).
build Build V code in the provided path (the default, so you can skip the word `build`).
translate Translate C code to V (coming soon in 0.3).
tracev Produce a tracing version of the v compiler.
Use `tracev yourfile.v` when the compiler panics.

View File

@ -87,7 +87,7 @@ fn main() {
}
else {}
}
if command in ['run', 'build-module'] || command.ends_with('.v') || os.exists(command) {
if command in ['run', 'build', 'build-module'] || command.ends_with('.v') || os.exists(command) {
// println('command')
// println(prefs.path)
builder.compile(command, prefs)