summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/sandbox/modules/import/core/base/option.lua12
1 files changed, 1 insertions, 11 deletions
diff --git a/xmake/core/sandbox/modules/import/core/base/option.lua b/xmake/core/sandbox/modules/import/core/base/option.lua
index cd00ea213..993231249 100644
--- a/xmake/core/sandbox/modules/import/core/base/option.lua
+++ b/xmake/core/sandbox/modules/import/core/base/option.lua
@@ -93,27 +93,17 @@ function sandbox_core_base_option.parse(argv, options, ...)
-- parse it
local results, errors = option.parse(argv, options)
if not results then
-
- -- show help
show_help()
-
- -- raise errors
raise(errors)
end
-- help?
if results.help then
-
- -- show help
show_help()
-
- -- exit
- raise()
+ os.exit()
else
results.help = show_help
end
-
- -- ok
return results
end