---
title: std.cli
canonical_url: https://mew-lang.org/stdlib/cli/
sidecar_url: https://mew-lang.org/stdlib/cli.md
content_hash: sha256:60ca12cf7d82220addebf85a0270f1cbbfe8acdd6d0cd6076fad2d66171e8abe
tokens: 187
uid: stdlib.cli
reading_time_minutes: 1
---

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.    
[Previous
                
                std.build.engine](https://mew-lang.org/stdlib/build-engine.md)[Next
                    
                std.collections](https://mew-lang.org/stdlib/collections.md)