subcommand

The word after a program's name that picks which of its operations to run, such as status in git status.

In more detail

Large tools group their operations as subcommands, each with its own options and help page. Options before the subcommand usually apply to the tool as a whole, and options after it to that operation.

Examples

git status
git help log
go mod tidy  # mod is the subcommand, tidy its action

Related terms

Taught in

References