OCP-BROWSER(1)
π¦ OCP-BROWSER(1) π¦
okay bestie, welcome to ocp-browser, from the Ocp-browser Manual (yes that's the manual's actual name, we love a self-titled moment π ). This is the page where you learn the whole vibe. Strap in. π
β¨ NAME β¨
ocp-browser β interactively completes and prints documentation. That's it, that's the whole job. It completes stuff, it prints docs, it does it interactively. Slay. π
β¨ SYNOPSIS β¨
ocp-browser [OPTION]β¦
literally just the command and then a bunch of options, no positional args to worry about, breathe π«Ά
β¨ DESCRIPTION β¨
So here's the entire description the page gives us:
See alt+h for help.
no cap, that's the whole thing π so like β press alt+h once you're inside and it'll explain itself to you. iykyk, the tool explains the tool. iconic honestly.
β¨ OPTIONS β¨
okay here's the full menu, every single one, no gatekeeping π
--build=DIRβ sets the current project build dir (default: it tries to guess). it's giving "i'll figure it out myself" energy, but you can hand it the answer if you want.-cWHEN,--color=WHEN β colorizes the output. WHEN is eitheralways,neverorauto. pick your aesthetic π--context=FILEPOS β analyses the context at the givenFILE[:LINE[,COL]]so it can give you appropriate answers w.r.t. open modules, etc. and yes, you can read from stdin: specify just:for that, or alternativelyFILENAME:-if you still wanna specify a filename β which gets used to detect e.g. the owning library scope. sneaky but useful π§-FMODULES,--full-open=MODULES β like--open, but if the.cmtis available, it loads even the elements that would be restricted by the interface. useful for the current file. it's--open's unhinged main character sister π-hLIST,--hide=LIST β kinds of elements not to show in answers; LIST is a comma-separated list of element kinds (see--show). β οΈ careful, bestie: here-his hide, not help. the help is alt+h. do not get got by this.-IDIRS β OCaml directories to (recursively) load the libraries from. yes, recursively. it goes deep π³οΈ--no-buildβ don't include the build directory of the current project in lookups. boundaries! π§--no-opamlibβ don't include the OPAM library directory (opam var lib) in lookups.--no-stdlibβ don't include the OCaml standard library directory (ocamlc -where) in lookups.-OMODULES,--open=MODULES β considers the given (comma-separated list of) modules as opened for lookup. yes bestie, opened, we're letting them in π--root=DIRβ sets the current project root (default: try to guess). same guessing situation as--build, it's a whole theme.-sLIST,--show=LIST β kinds of elements to show in answers; LIST is a comma-separated list oftypes,valuesand methods,exceptions,constructs(record fields and sum type constructors),modulesand classes,sigs(module and class types),keywords. the default ist,v,e,c,m,s,kβ screenshot that, you'll need it β¨
πΈ COMMON OPTIONS πΈ
the shared ones, every CLI has them, but ours are cute:
--help[=FMT](default=auto) β shows this help in format FMT. the value FMT must be one ofauto,pager,grofforplain. withauto, the format ispagerorplainwhenever theTERMenv var isdumbor undefined.--versionβ shows version information. little identity check πͺͺ
π EXIT STATUS π
ocp-browser exits with:
0β on success. we love a clean win π123β on indiscriminate errors reported on standard error. vague, chaotic, no further notes π124β on command line parsing errors. you typed something weird, it's judging you gently125β on unexpected internal errors (bugs). not you, it's them π
and that's the whole page, bestie β you are now officially ocp-browser literate, go forth and complete things ππ¦β
Ocp-browser 1.4.0 β that's the version, and this is the end of the OCP-BROWSER(1) manual page. mwah, bye π«Άπ
π¦ where this page comes from
- nixos 26.05: ocaml5.4.1-ocp-browser 1.4.1
- nixpkgs unstable: ocaml5.5.1-ocp-browser 1.4.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms