package cmdlang

  1. Overview
  2. Docs
type 'a t
type 'a parse := string -> ('a, [ `Msg of string ]) Stdlib.result
type 'a print := Stdlib.Format.formatter -> 'a -> unit
val create : docv:string -> parse:'a parse -> print:'a print -> 'a t

Basic types

val string : string t
val int : int t
val float : float t
val bool : bool t
val file : string t

Helpers

val enumerated : ?docv:string -> (module Enumerated_stringable with type t = 'a) -> 'a t
val stringable : ?docv:string -> (module Stringable with type t = 'a) -> 'a t
val validated_string : ?docv:string -> (module Validated_string with type t = 'a) -> 'a t
val comma_separated : 'a t -> 'a list t
OCaml

Innovation. Community. Security.