Skip to content

Glossary: Swift Beyond the Basics

argument (command-line)

Also written: arguments, option, options, flag, flags, @Argument, @Option, @Flag

The three kinds of command-line input in the `kc` tool. An argument is a plain value like `12`, an option is a name with a value like `--cafe "Bloom Café"`, and a flag is a name alone that turns something on, like `--single-origin`.

Where the book teaches it

Related terms

swift-argument-parserParsableCommand