diff options
| author | fwqaaq <[email protected]> | 2023-05-15 18:43:17 +0800 |
|---|---|---|
| committer | fwqaaq <[email protected]> | 2023-05-15 18:43:17 +0800 |
| commit | 117b93a3fd2a2f20780c4e52a5ead72720229f08 (patch) | |
| tree | 9b74021f05598d9177c70ef3e07114565fd288a9 | |
| parent | fc7c68f82fec17792bac0352d25deb5d49829b8f (diff) | |
fix: add error handler when targetname is
| -rw-r--r-- | xmake/actions/create/main.lua | 3 |
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!") |
