From 7c5f012cbc907c9c1217fe64f8a4cb852b3f59b3 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 16 Jul 2021 11:54:51 +0300 Subject: [PATCH] v: add a warning note to `v repl` --- cmd/v/v.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/v/v.v b/cmd/v/v.v index c5eb59fdf4..b0228b09a1 100644 --- a/cmd/v/v.v +++ b/cmd/v/v.v @@ -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', '-']