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

build: remove v build file.v (#7695)

This commit is contained in:
zakuro
2020-12-31 23:24:55 +09:00
committed by GitHub
parent f7b3ed2f4a
commit 1fb6710c89
2 changed files with 5 additions and 1 deletions

View File

@ -384,6 +384,10 @@ pub fn parse_args(args []string) (&Preferences, string) {
i++
}
else {
if command == 'build' && (arg.ends_with('.v') || os.exists(command)) {
eprintln('Use `v $arg` instead.')
exit(1)
}
if arg[0] == `-` {
if arg[1..] in list_of_flags_with_param {
// skip parameter