package calculon

  1. Overview
  2. Docs
type irc_log = [
  1. | `None
  2. | `Chan of Lwt_io.output_channel
  3. | `Custom of string -> unit Lwt.t
]
type t = {
  1. server : string;
  2. port : int;
  3. username : string;
  4. realname : string;
  5. nick : string;
  6. tls : bool;
  7. channel : string;
  8. state_file : string;
  9. irc_log : irc_log;
}
val default : t
val parse : t -> string array -> t

parse conf args is the same as conf, but some command line arguments can override its fields

val of_argv : unit -> t

Parsed from Sys.argv Will call exit if Arg.parse fails

OCaml

Innovation. Community. Security.