package mirage

  1. Overview
  2. Docs

Terms for cross-stage arguments.

This module extends Cmdliner.Arg to allow MetaOCaml-style typed cross-stage persistency of command-line arguments.

type 'a t

The type for arguments holding data of type 'a.

Optional Arguments

val opt : 'a Cmdliner.Arg.conv -> 'a -> Cmdliner.Arg.info -> 'a t

opt conv v i is similar to Cmdliner.Arg.opt but for cross-stage optional command-line arguments.

val required : 'a Cmdliner.Arg.conv -> Cmdliner.Arg.info -> 'a option t

required conv i is similar to Cmdliner.Arg.required but for cross-stage required command-line arguments.

val flag : Cmdliner.Arg.info -> bool t

flag i is similar to Cmdliner.Arg.flag but for cross-stage command-line flags.

val opt_all : 'a Cmdliner.Arg.conv -> Cmdliner.Arg.info -> 'a list t
val info : ?deprecated:string -> ?absent:string -> ?docs:string -> ?docv:string -> ?doc:string -> ?env:Cmdliner.Cmd.Env.info -> string list -> Cmdliner.Arg.info
OCaml

Innovation. Community. Security.