summaryrefslogtreecommitdiff
path: root/xmake/actions/create/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/actions/create/main.lua')
-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..cdfe1694e 100644
--- a/xmake/actions/create/main.lua
+++ b/xmake/actions/create/main.lua
@@ -31,6 +31,9 @@ end
-- create project from template
function _create_project(language, templateid, targetname)
+ if targetname == '.' then
+ raise("you should specific ${red}-P${reset} instead of using ${red}.${reset}")
+ end
-- check the language
assert(language, "no language!")