summaryrefslogtreecommitdiff
path: root/xmake/modules/cli/binutils/bin2c.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/cli/binutils/bin2c.lua')
-rw-r--r--xmake/modules/cli/binutils/bin2c.lua7
1 files changed, 7 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