summaryrefslogtreecommitdiff
path: root/xmake/core/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/main.lua')
-rw-r--r--xmake/core/main.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index ee336b118..ffd2b123e 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -113,14 +113,14 @@ function main.done()
return -1
end
- -- save command lines to history
- history.save("cmdlines", option.cmdline())
-
-- run help?
if main._help() then
return 0
end
+ -- save command lines to history
+ history.save("cmdlines", option.cmdline())
+
-- run task
local ok, errors = task.run(option.taskname() or "build")
if not ok then