summaryrefslogtreecommitdiff
path: root/xmake/modules/cli
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/cli')
-rw-r--r--xmake/modules/cli/binutils/bin2c.lua7
-rw-r--r--xmake/modules/cli/binutils/bin2obj.lua7
2 files changed, 14 insertions, 0 deletions
diff --git a/xmake/modules/cli/binutils/bin2c.lua b/xmake/modules/cli/binutils/bin2c.lua
index f2b03acdf..423d4f3eb 100644
--- a/xmake/modules/cli/binutils/bin2c.lua
+++ b/xmake/modules/cli/binutils/bin2c.lua
@@ -37,6 +37,13 @@ function main(...)
, ""
, "Usage: xmake l cli.binutils.bin2c [options]")
+ -- check arguments
+ if not opt.binarypath or not opt.outputpath then
+ cprint("${bright}Usage: $${clear}xmake l cli.binutils.bin2c [options]")
+ option.show_options(options, "bin2c")
+ return
+ end
+
-- do bin2c
bin2c.main(opt.binarypath, opt.outputpath, opt)
end
diff --git a/xmake/modules/cli/binutils/bin2obj.lua b/xmake/modules/cli/binutils/bin2obj.lua
index 33eb0511e..9024d4b24 100644
--- a/xmake/modules/cli/binutils/bin2obj.lua
+++ b/xmake/modules/cli/binutils/bin2obj.lua
@@ -42,6 +42,13 @@ function main(...)
, ""
, "Usage: xmake l cli.binutils.bin2obj [options]")
+ -- check arguments
+ if not opt.binarypath or not opt.outputpath then
+ cprint("${bright}Usage: $${clear}xmake l cli.binutils.bin2obj [options]")
+ option.show_options(options, "bin2obj")
+ return
+ end
+
-- do bin2obj
bin2obj.main(opt.binarypath, opt.outputpath, opt)
end