This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy at the same URL with .md appended. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation
Standard Library

std.cli

Types

Type Description
Cli Reads options from command line arguments. An option is named by its spellings, separated by a vertical bar.

Cli

Member Description
Cli::new(arguments: string[]) -> Cli Creates a Cli for the arguments.
single(names: string) -> Option<string> Returns the last value given for the option.
many(names: string) -> string[] Returns every value given for the option, in order.
flag(names: string) -> bool Whether the option was given.
Mew is a programming language under construction.