summaryrefslogtreecommitdiff
path: root/src/main.mlton.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-05-27 16:36:17 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-05-27 16:36:17 -0400
commitd6b698a6ad00a5f707ae48af039388687ac9b4ba (patch)
treee323bae4aa24f7a07c4a5c0941b14dc88b97e75a /src/main.mlton.sml
parent0091af30d2d24940404e49b30a6d0e2a0e4ba4e7 (diff)
-moduleOf command-line option; compatibility fixes and better error messages for SQLite
Diffstat (limited to 'src/main.mlton.sml')
-rw-r--r--src/main.mlton.sml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.mlton.sml b/src/main.mlton.sml
index f4f74be2..33838c93 100644
--- a/src/main.mlton.sml
+++ b/src/main.mlton.sml
@@ -85,6 +85,9 @@ fun doArgs args =
| "-iflow" :: rest =>
(Compiler.doIflow := true;
doArgs rest)
+ | "-moduleOf" :: fname :: _ =>
+ (print (Compiler.moduleOf fname ^ "\n");
+ OS.Process.exit OS.Process.success)
| arg :: rest =>
(if size arg > 0 andalso String.sub (arg, 0) = #"-" then
raise Fail ("Unknown flag " ^ arg)