CMDLINER-TOOL-COMPLETION(1)
π CMDLINER-TOOL-COMPLETION(1) β like, the whole manual, bestie
okay so this is a page from the Cmdliner Manual and it's genuinely so useful, so let's get into it β¨
πΈ NAME
cmdliner-tool-completion β spits out tool completion scripts, and honestly? iconic behavior.
π SYNOPSIS
cmdliner tool-completion [--standalone-completion] [OPTION]β¦ SHELL
TOOLNAME
yes bestie, that's two required little guys at the end: SHELL and TOOLNAME. no skipping them, periodt.
π DESCRIPTION
so cmdliner tool-completion outputs the tool specific completion script for a given shell. it's giving "here's exactly what you asked for." example, look:
cmdliner tool-completion zsh mytool
β οΈ important caveat though β not me forgetting to mention it: the tool specific completion script needs the corresponding generic completion script (the one output bygeneric-completion) to already be loaded in the shell. so it doesn't work all by itself in the normal case. and hey, if you wanna actually install these scripts, go look atcommand install tool-completion, iykyk π«Ά
π¦ ARGUMENTS
SHELL(required) β this is the shell you want to support, and it must be one ofbash,zshorpwsh. that's the whole list, fr fr. πTOOLNAME(required) β the name of the tool you want to complete. that's it, that's the vibe check.
β¨ OPTIONS
--standalone-completionβ generates standalone completion scripts. these bad boys don't depend on the generic cmdliner completion scripts at all, which is lowkey great. but heads up: for some shells this may result in slower completion π tradeoff city.
π COMMON OPTIONS
--help[=FMT](default=auto) β shows this help in formatFMT. andFMTmust be one ofauto,pager,grofforplain. withauto, the format ispagerorplainwhenever theTERMenv var isdumbor undefined. main character formatting moment π«--versionβ shows version information. simple, slay, no notes.
π₯ EXIT STATUS
cmdliner tool-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) π
ngl 125 is the "not my fault, it's a bug" one. respect.
π SEE ALSO
cmdliner(1)β go read it, bestie, it's the whole fam π«Ά
okay that's the whole page, no cap, every detail preserved π and just so we're official about it: this is Cmdliner v2.1.1, mwah π stay completed, bestie π¦βπ
π¦ 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