CMDLINER-GENERIC-COMPLETION(1)
π CMDLINER-GENERIC-COMPLETION(1) π
ok so this is a page from the Cmdliner Manual, bestie β welcome to the generic-completion era β¨
πΈ NAME πΈ
cmdliner-generic-completion β spits out generic completion scripts, no cap π«Ά
π SYNOPSIS π
cmdliner generic-completion [OPTION]β¦ SHELL
π DESCRIPTION π
cmdliner generic-completion prints the generic cmdliner completion script for whichever shell you point it at. it's giving plug-and-play, literally.
Examples, because we love a demo π
cmdliner generic-completion zsh
eval $(cmdliner generic-completion zsh)
ok so here's the tea π₯ β this script needs to be loaded in a shell for the tool-specific scripts output by the tool-completion command to actually work. like, it's the main character that makes the supporting cast function. iykyk.
then see command install generic-completion if you wanna install them. slay π
π¦ ARGUMENTS π¦
SHELL(required) β the shell you want to support. must be one ofbash,zshorpwsh. that's it, that's the list, no other options are invited to the party π
β¨ 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. choose your fighter π--versionβ show version information. iconic, brief, does what it says π
π EXIT STATUS π
cmdliner generic-completion exits with:
0β on success. we love a win π123β on indiscriminate errors reported on standard error. messy but at least it's labeled π124β on command line parsing errors. bestie the syntax was not synta-ing π125β on unexpected internal errors (bugs). not me... π«
π SEE ALSO π
cmdliner(1) β go read the parent, it's the blueprint fr fr π§
k bye ily β this was Cmdliner v2.1.1, same date as always, catch you on the next man page ππ
π¦ 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