Module Wrapper.Treat (.ml)


module Treat: sig .. end
Common treatments for parameters, inputs and outputs. All treatments are value of the type ('a -> 'b) option.

val identity : ('a -> 'a) option
Nothing to do (identity function).
val quote : (string -> string) option
Simple quote the argument. Sometimes, the argument of the filter must be envelopd into simple quotes, as for awk and sed, in order to prevent problems with special chars.
val is_true : string -> bool
Make your boolean scripts with this output treatment