Skip to content

usage complete-word

Generate shell completion candidates for a partial command line

This is used internally by shell completion scripts to provide intelligent completions for commands, flags, and arguments.

Arguments

  • [WORDS]… — User's input from the command line

Flags

  • -f --file <FILE> — Usage spec file or script with usage shebang, use "-" to read from stdin

  • -s --spec <SPEC> — Raw string spec input

  • --cword <CWORD> — Current word index

  • --shell <SHELL>

    Choices: bash, fish, nu, powershell, zsh

    Default: bash

  • -h --help — Print help

MIT LicenseCopyright © 2026jdx.dev