Module Cmdlang_stdlib_runner.Param_parser

Parsing parameters according to their specification.

This is a util module to convert string based parameters coming from the command line into their typed representation.

For example, if a param is expected to be an integer, this module will convert the string representation of the integer into an actual integer.

./my_command.exe --int-param 42

The string "42" will be converted into the integer 42, given the parameter Ast.Param.Int for the arg --int-param.

val docv : _ Cmdlang_ast.Ast.Param.t -> docv:string option -> string

Choose a docv for the help.

val print : 'a Cmdlang_ast.Ast.Param.t -> 'a -> string

Print a param for the help (e.g. document a default value).