OCaml: Add separate logging channels and a dedicated 'command' type
This commit is contained in:
parent
fab7e2425a
commit
ac3dbe4d30
9 changed files with 72 additions and 36 deletions
|
|
@ -1,7 +1,10 @@
|
|||
open Tori.Utilities.Aliases
|
||||
|
||||
let () =
|
||||
match Array.to_list Sys.argv with
|
||||
| _ :: tail ->
|
||||
let future = (Tori.Parsers.Argument.interpret Tori.Schema.seed tail) in
|
||||
if future.output.message <> "" then print_endline future.output.message;
|
||||
if future.output.main <> "" then print_endline future.output.main;
|
||||
if future.output.log <> "" then elog future.output.log;
|
||||
exit future.meta.status
|
||||
| [] -> assert false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue