diff options
Diffstat (limited to 'xmake/modules/cli/binutils/bin2obj.lua')
| -rw-r--r-- | xmake/modules/cli/binutils/bin2obj.lua | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
