mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
pref: fix message on inferred run (#6947)
This commit is contained in:
@@ -450,7 +450,7 @@ pub fn parse_args(args []string) (&Preferences, string) {
|
|||||||
must_exist(res.path)
|
must_exist(res.path)
|
||||||
if !res.path.ends_with('.v') && os.is_executable(res.path) && os.is_file(res.path) &&
|
if !res.path.ends_with('.v') && os.is_executable(res.path) && os.is_file(res.path) &&
|
||||||
os.is_file(res.path + '.v') {
|
os.is_file(res.path + '.v') {
|
||||||
eprintln('It looks like you wanted to run `v $res.path`, so we went ahead and did that since "$res.path" is an executable.')
|
eprintln('It looks like you wanted to run "${res.path}.v", so we went ahead and did that since "$res.path" is an executable.')
|
||||||
res.path += '.v'
|
res.path += '.v'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user