diff options
author | 2010-01-12 11:07:39 -0500 | |
---|---|---|
committer | 2010-01-12 11:07:39 -0500 | |
commit | 7154db01d1326dc2e0042c650126b7c629e1d7f5 (patch) | |
tree | e3f2eab582c8634cefeb2698d79930f02115505e /src/main.mlton.sml | |
parent | d098fe4f553b05d3dc5c670f41ade66d64eb5853 (diff) |
-path and -root command-line flags
Diffstat (limited to 'src/main.mlton.sml')
-rw-r--r-- | src/main.mlton.sml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.mlton.sml b/src/main.mlton.sml index 42f05259..9cf5064a 100644 --- a/src/main.mlton.sml +++ b/src/main.mlton.sml @@ -1,4 +1,4 @@ -(* Copyright (c) 2008, Adam Chlipala +(* Copyright (c) 2008-2010, Adam Chlipala * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -66,6 +66,12 @@ fun doArgs args = | "-static" :: rest => (Settings.setStaticLinking true; doArgs rest) + | "-path" :: name :: path :: rest => + (Compiler.addPath (name, path); + doArgs rest) + | "-root" :: name :: root :: rest => + (Compiler.addModuleRoot (root, name); + doArgs rest) | arg :: rest => (if size arg > 0 andalso String.sub (arg, 0) = #"-" then raise Fail ("Unknown flag " ^ arg) |