Page
Library
Module
Module type
Parameter
Class
Class type
Source
OpamArgSourceCommand-line argument parsers and helpers
val cli_from :
?platform:[ `all | `windows | `unix ] ->
?experimental:bool ->
OpamCLIVersion.t ->
validityval cli_between :
?option:[ `experimental | `default ] ->
OpamCLIVersion.t ->
?replaced:string ->
OpamCLIVersion.t ->
validityval mk_flag :
cli:OpamCLIVersion.Sourced.t ->
validity ->
?section:string ->
string list ->
string ->
bool Cmdliner.Term.tval mk_flag_replaced :
cli:OpamCLIVersion.Sourced.t ->
?section:string ->
(validity * string list) list ->
string ->
bool Cmdliner.Term.tval mk_opt :
cli:OpamCLIVersion.Sourced.t ->
validity ->
?section:string ->
?vopt:'a ->
string list ->
string ->
string ->
'a Cmdliner.Arg.conv ->
'a ->
'a Cmdliner.Term.tval mk_opt_all :
cli:OpamCLIVersion.Sourced.t ->
validity ->
?section:string ->
?vopt:'a ->
?default:'a list ->
string list ->
string ->
string ->
'a Cmdliner.Arg.conv ->
'a list Cmdliner.Term.tval mk_vflag :
cli:OpamCLIVersion.Sourced.t ->
?section:string ->
'a ->
(validity * 'a * string list * string) list ->
'a Cmdliner.Term.tval mk_vflag_all :
cli:OpamCLIVersion.Sourced.t ->
?section:string ->
?default:'a list ->
(validity * 'a * string list * string) list ->
'a list Cmdliner.Term.tval print_short_flag :
?section:string ->
OpamCLIVersion.Sourced.t ->
validity ->
bool Cmdliner.Term.t--short
val shell_opt :
?section:string ->
OpamCLIVersion.Sourced.t ->
validity ->
OpamTypes.shell option Cmdliner.Term.t--shell
val dot_profile_flag :
?section:string ->
OpamCLIVersion.Sourced.t ->
validity ->
OpamTypes.filename option Cmdliner.Term.t--dot-profile
val repo_kind_flag :
?section:string ->
OpamCLIVersion.Sourced.t ->
validity ->
OpamUrl.backend option Cmdliner.Term.t--http/ --git/ --local
val jobs_flag :
?section:string ->
OpamCLIVersion.Sourced.t ->
validity ->
int option Cmdliner.Term.t--jobs
val formula_flag :
?section:string ->
OpamCLIVersion.Sourced.t ->
OpamTypes.formula Cmdliner.Term.t--formula
package names
parameters
package list with optional constraints
package list with optional constraints
val atom_or_local_list :
[ `Atom of OpamTypes.atom
| `Filename of OpamTypes.filename
| `Dirname of OpamTypes.dirname ]
list
Cmdliner.Term.tval atom_or_dir_list :
[ `Atom of OpamTypes.atom | `Dirname of OpamTypes.dirname ] list
Cmdliner.Term.tGeneric argument list builder
Generic argument list builder
Confirmation level enum
type global_options = {debug_level : int option;verbose : int;quiet : bool;color : OpamStd.Config.when_ option;opt_switch : string option;confirm_level : OpamStd.Config.answer option;yes : bool option;strict : bool;opt_root : OpamTypes.dirname option;git_version : bool;external_solver : string option;use_internal_solver : bool;cudf_file : string option;solver_preferences : string option;best_effort : bool;safe_mode : bool;json : string option;no_auto_upgrade : bool;working_dir : bool;ignore_pin_depends : bool;cli : OpamCLIVersion.t;}Type for global options
Global options
Apply global options
Abstract type for build options
Build options
Install and reinstall options
val subpath :
?section:string ->
OpamCLIVersion.Sourced.t ->
OpamTypes.subpath option Cmdliner.Term.tApplly build options
Lock options
val no_checksums :
?section:string ->
OpamCLIVersion.Sourced.t ->
validity ->
bool Cmdliner.Term.tChecksum options
val require_checksums :
?section:string ->
OpamCLIVersion.Sourced.t ->
validity ->
bool Cmdliner.Term.tMan section name
Some package selection flags. Default section is âckage seletion one
val package_selection :
OpamCLIVersion.Sourced.t ->
OpamListCommand.selector list Cmdliner.Term.tBuild a package selection filter
Man section name
val package_listing :
OpamCLIVersion.Sourced.t ->
(force_all_versions:bool ->
OpamListCommand.package_listing_format)
Cmdliner.Term.tPackage selection filter based on the current state of packages (installed, available, etc.)
Repository name converter
URL converter
Filename converter
Filename converter also accepting "-" for stdin/stdout
Dirnam converter
Package name converter
Package version converter
name{.version} (or name=version)
name.version (or name=version)
name{(.|=|!=|>|<|>=|<=)version} converter
val atom_or_local :
[ `Atom of OpamTypes.atom
| `Filename of OpamTypes.filename
| `Dirname of OpamTypes.dirname ]
Cmdliner.Arg.convAccepts atom but also (explicit) file and directory names
val atom_or_dir :
[ `Atom of OpamTypes.atom | `Dirname of OpamTypes.dirname ] Cmdliner.Arg.convFormula, in the same format as depends: in opam files
var=value,... argument
Warnings string "+3..10-4@12"
A subcommand cmds, v, args, doc is the subcommand cmd, using the documentation doc and the list of documentation parameters args. If the subcommand is selected, return v value.
val mk_subcommands :
cli:OpamCLIVersion.Sourced.t ->
'a subcommands ->
'a option Cmdliner.Term.t * string list Cmdliner.Term.tsubcommands cmds are the terms cmd and params. cmd parses which sub-commands in cmds is selected and params parses the remaining of the command-line parameters as a list of strings.
val mk_subcommands_with_default :
cli:OpamCLIVersion.Sourced.t ->
'a default subcommands ->
'a option Cmdliner.Term.t * string list Cmdliner.Term.tSame as mk_subcommands but use the default value if no sub-command is selected.
val bad_subcommand :
cli:OpamCLIVersion.Sourced.t ->
'a default subcommands ->
(string * 'a option * string list) ->
'b Cmdliner.Term.retbad_subcommand cmds cmd is a command return value denoting a parsing error of sub-commands.
val mk_subdoc :
cli:OpamCLIVersion.Sourced.t ->
?defaults:(string * string) list ->
?extra_defaults:(validity * string * string) list ->
'a subcommands ->
Cmdliner.Manpage.block listmk_subdoc cmds is the documentation block for cmds.
val make_command_alias :
cli:OpamCLIVersion.Sourced.t ->
('a Cmdliner.Term.t * Cmdliner.Cmd.info) ->
?options:string ->
string ->
'a Cmdliner.Term.t * Cmdliner.Cmd.infoCreate an alias for an existing command. options can be used to add extra options after the original command in the doc (eg like `unpin` is an alias for `pin remove`).
val mk_command :
cli:OpamCLIVersion.Sourced.t ->
validity ->
string ->
doc:string ->
man:Cmdliner.Manpage.block list ->
(unit -> unit) Cmdliner.Term.t ->
commandval mk_command_ret :
cli:OpamCLIVersion.Sourced.t ->
validity ->
string ->
doc:string ->
man:Cmdliner.Manpage.block list ->
(unit -> unit Cmdliner.Term.ret) Cmdliner.Term.t ->
command