package ez_config

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type option_value =
  1. | Module of option_module
  2. | StringValue of string
  3. | IntValue of int
  4. | FloatValue of float
  5. | List of option_value list
  6. | SmallList of option_value list
  7. | OnceValue of option_value
  8. | DelayedValue of EzCompat.Buffer.t -> string -> unit
and option_module = (string * option_value) list
exception SideEffectOption
val prune_file : EzConfig__.SimpleConfig.config_file -> unit
val create_section_option : EzConfig__.SimpleConfig.config_section -> string list -> ?short_help:string -> string list -> ?level:int -> 'a EzConfig__.SimpleConfig.option_class -> 'a -> 'a EzConfig__.SimpleConfig.config_option
val option_hook : 'a EzConfig__.SimpleConfig.config_option -> (unit -> unit) -> unit
val add_option_hook : 'a EzConfig__.SimpleConfig.config_option -> (unit -> unit) -> unit
val clear_option_hooks : 'a EzConfig__.SimpleConfig.config_option -> unit
val color_option : string EzConfig__.SimpleConfig.option_class
val font_option : string EzConfig__.SimpleConfig.option_class
val hasharray_option : 'a -> (int * 'a * 'b) EzConfig__.SimpleConfig.option_class -> ('a, 'b) Stdlib.Hashtbl.t array EzConfig__.SimpleConfig.option_class
val shortname : 'a EzConfig__.SimpleConfig.config_option -> string
val option_type : 'a EzConfig__.SimpleConfig.config_option -> string
val get_help : 'a EzConfig__.SimpleConfig.config_option -> string
val advanced : 'a EzConfig__.SimpleConfig.config_option -> bool
val get_class : 'a EzConfig__.SimpleConfig.config_option -> 'a EzConfig__.SimpleConfig.option_class
val class_hook : 'a EzConfig__.SimpleConfig.option_class -> ('a EzConfig__.SimpleConfig.config_option -> unit) -> unit
val define_option_class : string -> ?option_kind:EzConfig__.SimpleConfig.option_kind -> (option_value -> 'a) -> ('a -> option_value) -> 'a EzConfig__.SimpleConfig.option_class
val to_value : 'a EzConfig__.SimpleConfig.option_class -> 'a -> option_value
val from_value : 'a EzConfig__.SimpleConfig.option_class -> option_value -> 'a
val value_to_string : option_value -> string
val string_to_value : string -> option_value
val value_to_int : option_value -> int
val int_to_value : int -> option_value
val value_to_int64 : option_value -> int64
val int64_to_value : int64 -> option_value
val bool_of_string : string -> bool
val value_to_bool : option_value -> bool
val bool_to_value : bool -> option_value
val value_to_float : option_value -> float
val float_to_value : float -> option_value
val value_to_string2 : option_value -> string * string
val string2_to_value : (string * string) -> option_value
val value_to_list : (option_value -> 'a) -> option_value -> 'a list
val list_to_value : ('a -> option_value) -> 'a list -> option_value
val smalllist_to_value : ('a -> option_value) -> 'a list -> option_value
val value_to_tuple2 : ((option_value * option_value) -> 'a) -> option_value -> 'a
val tuple2_to_value : ('a -> option_value * option_value) -> 'a -> option_value
val filename_to_value : Ez_file.V1.FileAbstract.t -> option_value
val value_to_filename : option_value -> Ez_file.V1.FileAbstract.t
val set_simple_option : EzConfig__.SimpleConfig.config_file -> string list -> string -> unit
val get_simple_option : EzConfig__.SimpleConfig.config_file -> string list -> string
val set_option_hook : EzConfig__.SimpleConfig.config_file -> string list -> (unit -> unit) -> unit
val set_string_wrappers : 'a EzConfig__.SimpleConfig.option_class -> ('a -> string) -> (string -> 'a) -> unit
val once_value : option_value -> option_value
val array_to_value : ('a -> option_value) -> 'a array -> option_value
val value_to_array : (option_value -> 'a) -> option_value -> 'a array
val restore_default : 'a EzConfig__.SimpleConfig.config_option -> unit
val sections : EzConfig__.SimpleConfig.config_file -> EzConfig__.SimpleConfig.config_section list
val section_name : EzConfig__.SimpleConfig.config_section -> string
val iter_file : (Stdlib.Obj.t EzConfig__.SimpleConfig.config_option -> unit) -> EzConfig__.SimpleConfig.config_file -> unit
val iter_section : (Stdlib.Obj.t EzConfig__.SimpleConfig.config_option -> unit) -> EzConfig__.SimpleConfig.config_section -> unit
val option_value_to_string : option_value -> string
val set_volatile : 'a EzConfig__.SimpleConfig.config_option -> unit
type option_info = {
  1. option_name : string list;
  2. option_shortname : string;
  3. option_value : string;
  4. option_short_help : string;
  5. option_long_help : string list;
  6. option_default : string;
  7. option_kind : EzConfig__.SimpleConfig.option_kind;
}
val simple_options : string -> EzConfig__.SimpleConfig.config_file -> option_info list
val simple_args : string -> EzConfig__.SimpleConfig.config_file -> (string * Stdlib.Arg.spec * string) list
val prefixed_args : string -> EzConfig__.SimpleConfig.config_file -> (string * Stdlib.Arg.spec * string) list
OCaml

Innovation. Community. Security.