From 8a986b994e11170462e6b2daf4b03401f211b8ab Mon Sep 17 00:00:00 2001 From: Hitalo Souza <63821277+enghitalo@users.noreply.github.com> Date: Tue, 10 Jan 2023 04:36:21 -0300 Subject: [PATCH] tools: fix `v new abc` (#16933) --- cmd/tools/vcreate.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/tools/vcreate.v b/cmd/tools/vcreate.v index 97851b11f0..df3335b946 100644 --- a/cmd/tools/vcreate.v +++ b/cmd/tools/vcreate.v @@ -97,7 +97,8 @@ fn new_project(args []string) { } println('Initialising ...') - if args.len > 0 { + // `v new abcde hello_world` + if args.len == 2 { match os.args.last() { 'web' { c.set_web_project_files() @@ -111,6 +112,7 @@ fn new_project(args []string) { } } } else { + // `v new abc` c.set_hello_world_project_files() }