diff options
| author | fwqaaq <[email protected]> | 2023-05-15 23:07:32 +0800 |
|---|---|---|
| committer | fwqaaq <[email protected]> | 2023-05-15 23:07:32 +0800 |
| commit | c75621554028dece1350e9ed004b8f324b4878c9 (patch) | |
| tree | 81f125e61be754231cc001f58e0f3d54fe5e706a | |
| parent | 4e768cef8bfada5097b9040a877400413adaef3e (diff) | |
update
| -rw-r--r-- | xmake/actions/create/main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/actions/create/main.lua b/xmake/actions/create/main.lua index ff90e4602..69aa52997 100644 --- a/xmake/actions/create/main.lua +++ b/xmake/actions/create/main.lua @@ -31,9 +31,9 @@ end -- create project from template function _create_project(language, templateid, targetname) - if targetname == '.' then - raise("you should specify ${red}-P${reset} instead of directly using ${red}.${reset}") - end + + -- check the targetname + assert(targetname ~= ".", "you should specify ${red}-P${reset} instead of directly using ${red}.${reset}") -- check the language assert(language, "no language!") |
