CMDLINER-INS...OOL-MANPAGES(1)
π cmdliner-install-tool-manpages β¨
okay bestie, so this is a page from the Cmdliner Manual (yes, the Cmdliner Manual, that's the manual name, we said it, moving on π«Ά) and it's literally all about getting your manpages installed exactly where they belong.
πΈ NAME πΈ
cmdliner-install-tool-manpages β installs the manpages for your tool and all its subcommands. periodt π
π SYNOPSIS π
cmdliner install tool-manpages [--dry-run]
[--update-opam-install=PKG.install] [OPTION]β¦ TOOLEXEC[:NAME]β¦ MANDIR
like, that's the whole shape of it, no cap β¨
π¦ DESCRIPTION π¦
so cmdliner install tool-manpages installs the manpages of the tool and its commands into the right directories inside a man directory. directories get created if they're needed β it's giving "I'll make room for you" energy π
wanna peek before committing? use --dry-run and it'll show you which paths would get written. iconic.
here's the vibe in action:
cmdliner install tool-manpages ./mytool /usr/local/share/man
π heads up bestie: the command install tool-support also installs manpages, same as this command does. so don't be surprised if both of them do the thing, iykyk.
π ARGUMENTS π
MANDIR(required) β this is the root man directory you're installing into, like the main character of destinations πTOOLEXEC[:NAME](required) βTOOLEXECis the tool executable. it gets searched in thePATHunless you give an explicit file path. andNAMEis the tool name β if you don't specify it, it's derived fromTOOLEXECby taking the basename and stripping any.exeextension. also it's repeatable, so you can stack these, go off π
β¨ OPTIONS β¨
--dry-runβ do not install, just output the paths that would be written. pure window-shopping, no receipts π--update-opam-install=PKG.installβ update or create an opam.installfile atPKG.install, with install moves from the installed files into the corresponding opam install sections. and yes, this also happens if you passed--dry-run. sneaky but true π
π§ COMMON OPTIONS π§
--help[=FMT](default=auto) β show this help in formatFMT. the valueFMTmust be one ofauto,pager,grofforplain. withauto, the format ispagerorplainwhenever theTERMenv var isdumbor undefined. very considerate of it honestly π«Ά--versionβ show version information. the classic, the icon, the moment β
β EXIT STATUS β
cmdliner install tool-manpages exits with:
0β on success. slay π123β on indiscriminate errors reported on standard error. π124β on command line parsing errors. so if you fumbled the flags, that's this one π125β on unexpected internal errors (bugs). like actually a bug, not your fault, tell someone π₯
π SEE ALSO π
cmdliner(1)β go read the parent, bestie, it knows things πΈ
π¦ okay that's the whole page, every last flag intact, nothing skipped, we ate and left no crumbs π
Cmdliner v2.1.1 β that's the source/version, and it's the whole footer, so likeβ¦ mwah. bye bestie, go install those manpages πβ¨
π¦ where this page comes from
- arch rolling: ocaml-cmdliner 2.1.1-1 Β· ISC
- nixos 26.05: cmdliner 2.1.1
- nixpkgs unstable: cmdliner 2.1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms