v: add a warning note to `v repl`

pull/10833/head
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
1 changed files with 2 additions and 0 deletions

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', '-']