BatOptParse.FormatterThis module contains the types and functions for implementing custom usage message formatters.
type t = {}This is the type of a formatter. The format_option has signature format_option (snames,lnames) metavars help, where snames is a list of the short option names, lnames is a list of the long option names, metavars is a list of the metavars the option takes as arguments, and help is the help string supplied by the user.
val indented_formatter : ?level:int ref -> ?indent:int ref -> ?indent_increment:int ->
?max_help_position:int -> ?width:int -> ?short_first:bool -> unit -> tCreate an "indented" formatter with the given options.
val titled_formatter : ?level:int ref -> ?indent:int ref -> ?indent_increment:int ->
?max_help_position:int -> ?width:int -> ?short_first:bool -> unit -> tCreates a titled formatter which is quite similar to the indented formatter. See OptParse.Formatter.indented_formatter for a description of the options.
wrap text width reflows the given text paragraph into lines of width at most width (lines may exceed this if the are single words that exceed this limit).