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

v: add a warning note to v repl

This commit is contained in:
Delyan Angelov 2021-07-16 11:54:51 +03:00
parent fe64346ae2
commit 7c5f012cbc
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -61,6 +61,8 @@ fn main() {
if args.len == 0 {
if os.is_atty(0) != 0 {
println('Welcome to the V REPL (for help with V itself, type `exit`, then run `v help`).')
eprintln(' NB: the REPL is highly experimental. For best V experience, use a text editor,')
eprintln(' save your code in a `main.v` file and do: `v run main.v`')
} else {
mut args_and_flags := util.join_env_vflags_and_os_args()[1..].clone()
args_and_flags << ['run', '-']