initialise app with a file path, for the functionality of loading different files from the terminal

This commit is contained in:
2025-08-26 15:56:52 +01:00
parent a98ca50cf5
commit dcd3c3117e
5 changed files with 36 additions and 14 deletions

View File

@@ -3,7 +3,8 @@ struct
fun main () =
case CommandLine.arguments () of
["-r"] => Converter.main ()
| [] => InitGlfw.main ()
| [filename] => InitGlfw.main filename
| [] => print "error: no arguments\n"
| args =>
let
val args = String.concatWith "" args