summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-03 11:03:37 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-03 11:03:37 -0700
commitcef6964b4b74f2f7cd63fe1dd7a3394a20d68bc6 (patch)
tree71d7702db0721499f6738fccc3745452b121c348
parentd692abff4b94a34b8fb5063ada92c915cfa6c42c (diff)
downloadmc-cef6964b4b74f2f7cd63fe1dd7a3394a20d68bc6.tar.gz
Clean up mbld init a little.
-rw-r--r--mbld/main.myr7
1 files changed, 3 insertions, 4 deletions
diff --git a/mbld/main.myr b/mbld/main.myr
index 0b5d54e..9a215d1 100644
--- a/mbld/main.myr
+++ b/mbld/main.myr
@@ -20,9 +20,9 @@ const main = {args : byte[:][:]
var bintarg
var cmd
var libpath
- var opts
- opts = [
+ dumponly = false
+ cmd = std.optparse(args, &[
.argdesc = "[inputs...]",
.opts = [
[.opt='t', .desc="list all available targets"],
@@ -36,8 +36,7 @@ const main = {args : byte[:][:]
[.opt='S', .desc="generate assembly when building"],
[.opt='d', .desc="dump debugging information for mbld"],
][:]
- ]
- cmd = std.optparse(args, &opts)
+ ])
bld.initopts()
for opt in cmd.opts
match opt