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

strconv: make atoi return ?int

This commit is contained in:
Alexander Medvednikov
2020-12-21 08:35:24 +01:00
parent 2147d8785b
commit fc965b7d92
3 changed files with 66 additions and 48 deletions

View File

@@ -409,6 +409,7 @@ pub fn parse_args(args []string) (&Preferences, string) {
}
}
}
// res.use_cache = true
if command != 'doc' && res.out_name.ends_with('.v') {
eprintln('Cannot save output binary in a .v file.')
exit(1)