Terminology

September 26, 2020 ยท View on GitHub

The command line arguments are made up of options, option-arguments, commands, and command-arguments.

TermExplanation
optionan argument which is a - followed by a character, or -- followed by a word (or hyphenated words), like -s or --short
option-argumentsome options can take an argument
commanda program or command can have subcommands
command-argumentargument for the command (and not an option or option-argument)

For example:

my-utility command -o --option option-argument command-argument-1 command-argument-2

In other references options are sometimes called flags, and command-arguments are sometimes called positional arguments or operands.