package links

  1. Overview
  2. Docs
type 'a setting
type mode = [
  1. | `User
  2. | `System
]
val add_bool : ?hook:(bool -> unit) -> (string * bool * mode) -> bool setting
val add_int : ?hook:(int -> unit) -> (string * int * mode) -> int setting
val add_string : ?hook:(string -> unit) -> (string * string * mode) -> string setting
val parse_and_set : (string * string) -> bool -> unit
val parse_and_set_user : (string * string) -> bool -> unit
val lookup_bool : string -> bool setting
val lookup_int : string -> int setting
val lookup_string : string -> string setting
val get_value : 'a setting -> 'a
val get_name : 'a setting -> string
val set_value : 'a setting -> 'a -> unit
val print_settings : unit -> string list
val from_argv : string array -> string list
val load_file : bool -> string -> unit
OCaml

Innovation. Community. Security.