Error if we forgot to give code to build.
@@ -67,9 +67,15 @@ const main = {args : byte[:][:]
b = mkbuild(tags)
if targname.len != 0
+ if cmd.args.len == 0
+ std.fatal("nothing to compile\n")
+ ;;
bld.opt_objdir = objdir
ok = buildimm(b, targname, cmd.args)
elif runsrc.len != 0
+ if cmd.args.len == 0
+ std.fatal("nothing to run\n")
+ ;;
bld.opt_objdir = objdir
bld.opt_verbosity = -1
tmp = std.mktemppath("runmyr")
