package opam-core
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Core library for opam 2.5
Install
dune-project
Dependency
Authors
-
David Allsopp
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
KKate Deplaix <kit-ty-kate@outlook.com>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
AAnil Madhavapeddy <anil@recoil.org>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
RRalf Treinen <ralf.treinen@pps.jussieu.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
Maintainers
Sources
2.5.0-beta1.tar.gz
md5=8f0995bb3cb626efa1af74bc6d888c54
sha512=607ff235cf43e73cbcbf67202682a1bd7b0e3fa35bc6b4748a54db9b57b7a0a25e656ec0f8d81d0369b3a1b05fd5c4148571f5dc217ffdbcd2c32592e0b682b6
doc/src/opam-core.cmdliner/cmdliner_cmd.ml.html
Source file cmdliner_cmd.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30(*--------------------------------------------------------------------------- Copyright (c) 2022 The cmdliner programmers. All rights reserved. SPDX-License-Identifier: ISC ---------------------------------------------------------------------------*) (* Commands *) (* Command info *) type info = Cmdliner_info.Cmd.t let info = Cmdliner_info.Cmd.v type 'a t = | Cmd of info * 'a Cmdliner_term.parser | Group of info * ('a Cmdliner_term.parser option * 'a t list) let get_info = function Cmd (i, _) | Group (i, _) -> i let children_infos = function | Cmd _ -> [] | Group (_, (_, cs)) -> List.map get_info cs let v i (args, p) = Cmd (Cmdliner_info.Cmd.add_args i args, p) let group ?default i cmds = let args, parser = match default with | None -> None, None | Some (args, p) -> Some args, Some p in let children = List.map get_info cmds in let i = Cmdliner_info.Cmd.with_children i ~args ~children in Group (i, (parser, cmds)) let name c = Cmdliner_info.Cmd.name (get_info c)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>