package libmojave

  1. Overview
  2. Docs

Module Lm_argSource

Sourcetype 'a poly_spec =
  1. | Unit of unit -> unit
  2. | Set of bool ref
  3. | Clear of bool ref
  4. | String of string -> unit
  5. | Int of int -> unit
  6. | Float of float -> unit
  7. | Rest of string -> unit
  8. | UnitFold of 'a -> 'a
  9. | SetFold of 'a -> bool -> 'a
  10. | ClearFold of 'a -> bool -> 'a
  11. | StringFold of 'a -> string -> 'a
  12. | IntFold of 'a -> int -> 'a
  13. | FloatFold of 'a -> float -> 'a
  14. | RestFold of 'a -> string -> 'a
  15. | Usage
Sourcetype spec_mode =
  1. | StrictOptions
  2. | MultiLetterOptions
Sourcetype 'a poly_section = (string * 'a poly_spec * string) list
Sourcetype 'a poly_sections = spec_mode * (string * 'a poly_section) list
Sourcetype spec = unit poly_spec
Sourcetype section = unit poly_section
Sourcetype sections = unit poly_sections
Sourceexception BogusArg of string
Sourceexception UsageError
Sourceval fold_argv : string array -> 'a poly_sections -> 'a -> ('a -> string -> 'a * bool) -> string -> 'a
Sourceval fold : 'a poly_sections -> 'a -> ('a -> string -> 'a * bool) -> string -> 'a
Sourceval parse_argv : string array -> sections -> (string -> unit) -> string -> unit
Sourceval parse : sections -> (string -> unit) -> string -> unit
Sourceval usage : 'a poly_sections -> string -> unit