summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/actions/create/main.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/actions/create/main.lua b/xmake/actions/create/main.lua
index 560b3b457..69aa52997 100644
--- a/xmake/actions/create/main.lua
+++ b/xmake/actions/create/main.lua
@@ -32,6 +32,9 @@ end
-- create project from template
function _create_project(language, templateid, targetname)
+ -- check the targetname
+ assert(targetname ~= ".", "you should specify ${red}-P${reset} instead of directly using ${red}.${reset}")
+
-- check the language
assert(language, "no language!")