CMDLINER-INS...IC-COMPLETION(1)
π NAME π
cmdliner-install-generic-completion β install generic completion scripts, bestie. This one lives in the Cmdliner Manual and is literally here to help you install generic completion scripts. Periodt.
β¨ SYNOPSIS β¨
cmdliner install generic-completion [--dry-run] [--shell=SHELL]
[--update-opam-install=PKG.install] [OPTION]β¦ SHAREDIR
π¦ DESCRIPTION π¦
Okay so cmdliner install generic-completion installs the generic completion script of given shells into a share directory according to specific shell conventions. Directories are created if needed β yes, it handles that for you. Use option --dry-run to see which paths would be written. Examples:
cmdliner install generic-completion /usr/local/share # All supported shells
cmdliner install generic-completion --shell zsh /usr/local/share
To inspect the actual scripts use the command generic-completion. Iconic.
π ARGUMENTS π
SHAREDIR(required) βSHAREDIRis the share directory to install to. Thatβs the destination, bestie.
π OPTIONS π
--dry-runβ Do not install; output paths that would be written. Itβs the βlook, donβt touchβ mode.-s SHELL,--shell=SHELLβ (absent=All supported shells)SHELLis the shell to support, and it must be one ofbash,zshorpwsh. Repeatable, so you can stack it.--update-opam-install=PKG.installβ Update or create an opam.installfilePKG.installwith install moves from the installed files to the corresponding opam install sections. Also performed if--dry-runis specified. Yes, even in dry-run.
π 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.--versionβ Show version information. Slay.
π₯ EXIT STATUS π₯
cmdliner install generic-completion exits with:
0β on success.123β on indiscriminate errors reported on standard error.124β on command line parsing errors.125β on unexpected internal errors (bugs).
β SEE ALSO β
Bye bestie π«Ά β source/version: Cmdliner v2.1.1; date: not shown on the page, so Iβm not inventing one. π
π¦ 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