1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3<head> 4<link rel="stylesheet" href="style.css" type="text/css"> 5<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> 6<meta name="viewport" content="width=device-width, initial-scale=1"> 7<link rel="Start" href="index.html"> 8<link rel="Up" href="Arg_helper.html"> 9<link title="Index of types" rel=Appendix href="index_types.html"> 10<link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> 11<link title="Index of values" rel=Appendix href="index_values.html"> 12<link title="Index of modules" rel=Appendix href="index_modules.html"> 13<link title="Index of module types" rel=Appendix href="index_module_types.html"> 14<link title="Arg" rel="Chapter" href="Arg.html"> 15<link title="Arg_helper" rel="Chapter" href="Arg_helper.html"> 16<link title="Arith_status" rel="Chapter" href="Arith_status.html"> 17<link title="Array" rel="Chapter" href="Array.html"> 18<link title="ArrayLabels" rel="Chapter" href="ArrayLabels.html"> 19<link title="Ast_helper" rel="Chapter" href="Ast_helper.html"> 20<link title="Ast_invariants" rel="Chapter" href="Ast_invariants.html"> 21<link title="Ast_iterator" rel="Chapter" href="Ast_iterator.html"> 22<link title="Ast_mapper" rel="Chapter" href="Ast_mapper.html"> 23<link title="Asttypes" rel="Chapter" href="Asttypes.html"> 24<link title="Attr_helper" rel="Chapter" href="Attr_helper.html"> 25<link title="Big_int" rel="Chapter" href="Big_int.html"> 26<link title="Bigarray" rel="Chapter" href="Bigarray.html"> 27<link title="Buffer" rel="Chapter" href="Buffer.html"> 28<link title="Builtin_attributes" rel="Chapter" href="Builtin_attributes.html"> 29<link title="Bytes" rel="Chapter" href="Bytes.html"> 30<link title="BytesLabels" rel="Chapter" href="BytesLabels.html"> 31<link title="Callback" rel="Chapter" href="Callback.html"> 32<link title="CamlinternalFormat" rel="Chapter" href="CamlinternalFormat.html"> 33<link title="CamlinternalFormatBasics" rel="Chapter" href="CamlinternalFormatBasics.html"> 34<link title="CamlinternalLazy" rel="Chapter" href="CamlinternalLazy.html"> 35<link title="CamlinternalMod" rel="Chapter" href="CamlinternalMod.html"> 36<link title="CamlinternalOO" rel="Chapter" href="CamlinternalOO.html"> 37<link title="Ccomp" rel="Chapter" href="Ccomp.html"> 38<link title="Char" rel="Chapter" href="Char.html"> 39<link title="Clflags" rel="Chapter" href="Clflags.html"> 40<link title="Complex" rel="Chapter" href="Complex.html"> 41<link title="Condition" rel="Chapter" href="Condition.html"> 42<link title="Config" rel="Chapter" href="Config.html"> 43<link title="Consistbl" rel="Chapter" href="Consistbl.html"> 44<link title="Depend" rel="Chapter" href="Depend.html"> 45<link title="Digest" rel="Chapter" href="Digest.html"> 46<link title="Docstrings" rel="Chapter" href="Docstrings.html"> 47<link title="Dynlink" rel="Chapter" href="Dynlink.html"> 48<link title="Ephemeron" rel="Chapter" href="Ephemeron.html"> 49<link title="Event" rel="Chapter" href="Event.html"> 50<link title="Filename" rel="Chapter" href="Filename.html"> 51<link title="Format" rel="Chapter" href="Format.html"> 52<link title="Gc" rel="Chapter" href="Gc.html"> 53<link title="Genlex" rel="Chapter" href="Genlex.html"> 54<link title="Graphics" rel="Chapter" href="Graphics.html"> 55<link title="GraphicsX11" rel="Chapter" href="GraphicsX11.html"> 56<link title="Hashtbl" rel="Chapter" href="Hashtbl.html"> 57<link title="Identifiable" rel="Chapter" href="Identifiable.html"> 58<link title="Int32" rel="Chapter" href="Int32.html"> 59<link title="Int64" rel="Chapter" href="Int64.html"> 60<link title="Lazy" rel="Chapter" href="Lazy.html"> 61<link title="Lexer" rel="Chapter" href="Lexer.html"> 62<link title="Lexing" rel="Chapter" href="Lexing.html"> 63<link title="List" rel="Chapter" href="List.html"> 64<link title="ListLabels" rel="Chapter" href="ListLabels.html"> 65<link title="Location" rel="Chapter" href="Location.html"> 66<link title="Longident" rel="Chapter" href="Longident.html"> 67<link title="Map" rel="Chapter" href="Map.html"> 68<link title="Marshal" rel="Chapter" href="Marshal.html"> 69<link title="Misc" rel="Chapter" href="Misc.html"> 70<link title="MoreLabels" rel="Chapter" href="MoreLabels.html"> 71<link title="Mutex" rel="Chapter" href="Mutex.html"> 72<link title="Nativeint" rel="Chapter" href="Nativeint.html"> 73<link title="Num" rel="Chapter" href="Num.html"> 74<link title="Numbers" rel="Chapter" href="Numbers.html"> 75<link title="Obj" rel="Chapter" href="Obj.html"> 76<link title="Oo" rel="Chapter" href="Oo.html"> 77<link title="Parse" rel="Chapter" href="Parse.html"> 78<link title="Parser" rel="Chapter" href="Parser.html"> 79<link title="Parsetree" rel="Chapter" href="Parsetree.html"> 80<link title="Parsing" rel="Chapter" href="Parsing.html"> 81<link title="Pervasives" rel="Chapter" href="Pervasives.html"> 82<link title="Pprintast" rel="Chapter" href="Pprintast.html"> 83<link title="Printast" rel="Chapter" href="Printast.html"> 84<link title="Printexc" rel="Chapter" href="Printexc.html"> 85<link title="Printf" rel="Chapter" href="Printf.html"> 86<link title="Queue" rel="Chapter" href="Queue.html"> 87<link title="Random" rel="Chapter" href="Random.html"> 88<link title="Ratio" rel="Chapter" href="Ratio.html"> 89<link title="Scanf" rel="Chapter" href="Scanf.html"> 90<link title="Set" rel="Chapter" href="Set.html"> 91<link title="Sort" rel="Chapter" href="Sort.html"> 92<link title="Spacetime" rel="Chapter" href="Spacetime.html"> 93<link title="Stack" rel="Chapter" href="Stack.html"> 94<link title="StdLabels" rel="Chapter" href="StdLabels.html"> 95<link title="Str" rel="Chapter" href="Str.html"> 96<link title="Stream" rel="Chapter" href="Stream.html"> 97<link title="String" rel="Chapter" href="String.html"> 98<link title="StringLabels" rel="Chapter" href="StringLabels.html"> 99<link title="Strongly_connected_components" rel="Chapter" href="Strongly_connected_components.html"> 100<link title="Syntaxerr" rel="Chapter" href="Syntaxerr.html"> 101<link title="Sys" rel="Chapter" href="Sys.html"> 102<link title="Targetint" rel="Chapter" href="Targetint.html"> 103<link title="Tbl" rel="Chapter" href="Tbl.html"> 104<link title="Terminfo" rel="Chapter" href="Terminfo.html"> 105<link title="Thread" rel="Chapter" href="Thread.html"> 106<link title="ThreadUnix" rel="Chapter" href="ThreadUnix.html"> 107<link title="Timings" rel="Chapter" href="Timings.html"> 108<link title="Uchar" rel="Chapter" href="Uchar.html"> 109<link title="Unix" rel="Chapter" href="Unix.html"> 110<link title="UnixLabels" rel="Chapter" href="UnixLabels.html"> 111<link title="Warnings" rel="Chapter" href="Warnings.html"> 112<link title="Weak" rel="Chapter" href="Weak.html"><title>Arg_helper.Make</title> 113</head> 114<body> 115<div class="navbar"> <a class="up" href="Arg_helper.html" title="Arg_helper">Up</a> 116 </div> 117<h1>Functor <a href="type_Arg_helper.Make.html">Arg_helper.Make</a></h1> 118 119<pre><span class="keyword">module</span> Make: <div class="sig_block"><code class="code"><span class="keyword">functor</span> (</code><code class="code"><span class="constructor">S</span></code><code class="code"> : </code><code class="code"><span class="keyword">sig</span></code></pre><div class="sig_block"> 120<pre><span class="keyword">module</span> <a href="Arg_helper.Make.Key.html">Key</a>: <code class="code"><span class="keyword">sig</span></code> <a href="Arg_helper.Make.Key.html">..</a> <code class="code"><span class="keyword">end</span></code></pre> 121<pre><span class="keyword">module</span> <a href="Arg_helper.Make.Value.html">Value</a>: <code class="code"><span class="keyword">sig</span></code> <a href="Arg_helper.Make.Value.html">..</a> <code class="code"><span class="keyword">end</span></code></pre></div><pre><code class="code"><span class="keyword">end</span></code><code class="code">) <span class="keywordsign">-></span> </code><code class="code"><span class="keyword">sig</span></code> <a href="Arg_helper.Make.html">..</a> <code class="code"><span class="keyword">end</span></code></div></pre><table border="0" cellpadding="3" width="100%"> 122<tr> 123<td align="left" valign="top" width="1%%"><b>Parameters: </b></td> 124<td> 125<table class="paramstable"> 126<tr> 127<td align="center" valign="top" width="15%"> 128<code>S</code></td> 129<td align="center" valign="top">:</td> 130<td><code class="type">sig 131 module Key : sig 132 type t 133 134 (** The textual representation of a key must not contain '=' or ','. *) 135 val of_string : string -> t 136 137 module <a href="Map.html">Map</a> : <a href="Map.S.html">Map.S</a> with type key = t 138 end 139 140 module Value : sig 141 type t 142 143 (** The textual representation of a value must not contain ','. *) 144 val of_string : string -> t 145 end 146end</code> 147</table> 148</td> 149</tr> 150</table> 151<hr width="100%"> 152 153<pre><span id="TYPEparsed"><span class="keyword">type</span> <code class="type"></code>parsed</span> </pre> 154 155 156<pre><span id="VALdefault"><span class="keyword">val</span> default</span> : <code class="type">S.Value.t -> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a></code></pre> 157<pre><span id="VALset_base_default"><span class="keyword">val</span> set_base_default</span> : <code class="type">S.Value.t -> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a> -> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a></code></pre> 158<pre><span id="VALadd_base_override"><span class="keyword">val</span> add_base_override</span> : <code class="type">S.Key.t -> S.Value.t -> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a> -> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a></code></pre> 159<pre><span id="VALreset_base_overrides"><span class="keyword">val</span> reset_base_overrides</span> : <code class="type"><a href="Arg_helper.Make.html#TYPEparsed">parsed</a> -> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a></code></pre> 160<pre><span id="VALset_user_default"><span class="keyword">val</span> set_user_default</span> : <code class="type">S.Value.t -> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a> -> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a></code></pre> 161<pre><span id="VALadd_user_override"><span class="keyword">val</span> add_user_override</span> : <code class="type">S.Key.t -> S.Value.t -> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a> -> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a></code></pre> 162<pre><span id="VALparse"><span class="keyword">val</span> parse</span> : <code class="type">string -> string -> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a> <a href="Pervasives.html#TYPEref">ref</a> -> unit</code></pre> 163<pre><code><span id="TYPEparse_result"><span class="keyword">type</span> <code class="type"></code>parse_result</span> = </code></pre><table class="typetable"> 164<tr> 165<td align="left" valign="top" > 166<code><span class="keyword">|</span></code></td> 167<td align="left" valign="top" > 168<code><span id="TYPEELTparse_result.Ok"><span class="constructor">Ok</span></span></code></td> 169 170</tr> 171<tr> 172<td align="left" valign="top" > 173<code><span class="keyword">|</span></code></td> 174<td align="left" valign="top" > 175<code><span id="TYPEELTparse_result.Parse_failed"><span class="constructor">Parse_failed</span></span> <span class="keyword">of</span> <code class="type">exn</code></code></td> 176 177</tr></table> 178 179 180 181<pre><span id="VALparse_no_error"><span class="keyword">val</span> parse_no_error</span> : <code class="type">string -><br> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a> <a href="Pervasives.html#TYPEref">ref</a> -> <a href="Arg_helper.Make.html#TYPEparse_result">parse_result</a></code></pre> 182<pre><span id="VALget"><span class="keyword">val</span> get</span> : <code class="type">key:S.Key.t -> <a href="Arg_helper.Make.html#TYPEparsed">parsed</a> -> S.Value.t</code></pre></body></html>