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

-s --spec <SPEC>

Raw string spec input

--cword <CWORD>

Current word index

--shell <SHELL>

Choices:

  • bash
  • fish
  • zsh

Licensed under the MIT License. Maintained by @jdx and friends.