Skip to main content

BASH_ARITY_TABLE

Static BASH_ARITY_TABLE 

Source
pub static BASH_ARITY_TABLE: &[(&str, u8)]
Expand description

Static arity table: (prefix, arity).

Arity is the total number of positional tokens (including the base command) that form the canonical prefix. For example:

  • ("git status", 2) — 2 positional tokens: git + status.
  • ("npm run", 3) — 3 positional tokens: npm + run + <script>.
  • ("make", 1) — only the base command, no sub-command.