<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Posix_getopt (posix-getopt.Posix_getopt)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">posix-getopt</a> » Posix_getopt</nav><h1>Module <code>Posix_getopt</code></h1></header><dl><dt class="spec type" id="type-short"><a href="#type-short" class="anchor"></a><code><span class="keyword">type</span> short</code><code> = char</code></dt><dt class="spec type" id="type-long"><a href="#type-long" class="anchor"></a><code><span class="keyword">type</span> long</code><code> = string * char</code></dt><dt class="spec type" id="type-arg"><a href="#type-arg" class="anchor"></a><code><span class="keyword">type</span> arg</code> = <code>[ </code><table class="variant"><tr id="type-arg.None" class="anchored"><td class="def constructor"><a href="#type-arg.None" class="anchor"></a><code>| </code><code>`None <span class="keyword">of</span> unit <span>-></span> unit</code></td></tr><tr id="type-arg.Optional" class="anchored"><td class="def constructor"><a href="#type-arg.Optional" class="anchor"></a><code>| </code><code>`Optional <span class="keyword">of</span> <span>string option</span> <span>-></span> unit</code></td></tr><tr id="type-arg.Required" class="anchored"><td class="def constructor"><a href="#type-arg.Required" class="anchor"></a><code>| </code><code>`Required <span class="keyword">of</span> string <span>-></span> unit</code></td></tr></table><code> ]</code></dt><dt class="spec type" id="type-opt"><a href="#type-opt" class="anchor"></a><code><span class="keyword">type</span> <span>'a opt</span></code><code> = </code><code>{</code><table class="record"><tr id="type-opt.name" class="anchored"><td class="def field"><a href="#type-opt.name" class="anchor"></a><code>name : <span class="type-var">'a</span>;</code></td></tr><tr id="type-opt.arg" class="anchored"><td class="def field"><a href="#type-opt.arg" class="anchor"></a><code>arg : <a href="index.html#type-arg">arg</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec exception" id="exception-Unknown_option"><a href="#exception-Unknown_option" class="anchor"></a><code><span class="keyword">exception</span> </code><code><span class="exception">Unknown_option</span> <span class="keyword">of</span> char</code></dt><dt class="spec exception" id="exception-Missing_argument"><a href="#exception-Missing_argument" class="anchor"></a><code><span class="keyword">exception</span> </code><code><span class="exception">Missing_argument</span> <span class="keyword">of</span> char</code></dt></dl><dl><dt class="spec value" id="val-has_getopt_long"><a href="#val-has_getopt_long" class="anchor"></a><code><span class="keyword">val</span> has_getopt_long : bool</code></dt><dt class="spec value" id="val-has_getopt_long_only"><a href="#val-has_getopt_long_only" class="anchor"></a><code><span class="keyword">val</span> has_getopt_long_only : bool</code></dt><dt class="spec value" id="val-print_error"><a href="#val-print_error" class="anchor"></a><code><span class="keyword">val</span> print_error : bool <span>-></span> unit</code></dt><dt class="spec value" id="val-reset"><a href="#val-reset" class="anchor"></a><code><span class="keyword">val</span> reset : unit <span>-></span> unit</code></dt><dt class="spec value" id="val-getopt"><a href="#val-getopt" class="anchor"></a><code><span class="keyword">val</span> getopt : <span>string array</span> <span>-></span> <span><span><a href="index.html#type-short">short</a> <a href="index.html#type-opt">opt</a></span> list</span> <span>-></span> <span>string array</span></code></dt><dt class="spec value" id="val-getopt_long"><a href="#val-getopt_long" class="anchor"></a><code><span class="keyword">val</span> getopt_long : <span>string array</span> <span>-></span> <span><span><a href="index.html#type-long">long</a> <a href="index.html#type-opt">opt</a></span> list</span> <span>-></span> <span>string array</span></code></dt><dt class="spec value" id="val-getopt_long_only"><a href="#val-getopt_long_only" class="anchor"></a><code><span class="keyword">val</span> getopt_long_only : <span>string array</span> <span>-></span> <span><span><a href="index.html#type-long">long</a> <a href="index.html#type-opt">opt</a></span> list</span> <span>-></span> <span>string array</span></code></dt></dl></div></body></html>
|