progress parsing command line args

This commit is contained in:
2025-08-26 13:58:42 +01:00
parent d3d7955727
commit 868e066295
3 changed files with 13 additions and 2 deletions

BIN
dsc Executable file

Binary file not shown.

View File

@@ -59,5 +59,6 @@ struct
()
end
fun main () = RunCML.doit (init, NONE)
fun main () =
(RunCML.doit (init, NONE); ())
end

View File

@@ -1,6 +1,16 @@
structure Shell =
struct
fun main () = InitGlfw.main ()
fun main () =
case CommandLine.arguments () of
["-r"] => (print "todo: convert dsc files to sml file\n")
| [] => InitGlfw.main ()
| args =>
let
val args = String.concatWith "" args
val msg = String.concat ["unknown arguments error: \"", args, "\"\n"]
in
print msg
end
end
val _ = Shell.main ()