CMDLINER-TOOL-COMMANDS(1)

πŸ“¦ version 2.1.1, in arch rolling, nixos 26.05, nixpkgs unstable

πŸ’… CMDLINER-TOOL-COMMANDS(1) πŸ’…

okay so this is a page from the Cmdliner Manual β€” yes the whole manual, and yes this page is a certified banger. sit down, bestie, we're learning about cmdliner tool-commands πŸŽ€


✨ NAME ✨

cmdliner-tool-commands β€” the girl whose whole job is to output all the subcommands of a cmdliner tool. that's it. that's the gig. iconic honestly πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

cmdliner tool-commands [OPTION]… TOOLEXEC

🌸 DESCRIPTION 🌸

so cmdliner tool-commands outputs every single subcommand of a given cmdliner based tool β€” one per line. like a little parade of subcommands, marching single file. so organized. so demure. πŸŽ€

examples, because we love a demo:

cmdliner tool-commands ./mytool
cmdliner tool-commands cmdliner

πŸ‘‘ ARGUMENTS πŸ‘‘

  • TOOLEXEC (required) β€” this is the tool executable. it gets searched in the PATH unless you specify an explicit file path. lowkey it's just out here looking for your tool fr fr πŸ”

πŸ’– COMMON OPTIONS πŸ’–

  • --help[=FMT] (default=auto) β€” show this help in format FMT. the value FMT must be one of auto, pager, groff or plain. with auto, the format is pager or plain whenever the TERM env var is dumb or undefined. bestie dumb is literally the name of the value, i'm not being mean 😭
  • --version β€” show version information. slay. ✨

πŸ’€ EXIT STATUS πŸ’€

cmdliner tool-commands exits with:

  1. 0 β€” on success. we love a win 🫢
  2. 123 β€” on indiscriminate errors reported on standard error. not me, not my problem, but okay πŸ™ˆ
  3. 124 β€” on command line parsing errors. the vibe check failed πŸ’€
  4. 125 β€” on unexpected internal errors (bugs). bugs. yes bestie they said the word 😭

🌈 SEE ALSO 🌈

  • cmdliner(1) β€” the main character herself πŸ‘‘

okay that's the whole page, you ate that fr fr πŸ’œ β€” this masterpiece is brought to you by Cmdliner v2.1.1, straight out of the Cmdliner Manual. now go list some subcommands, bestie πŸ¦‹β­

πŸ“¦ where this page comes from