Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lpil/argv

➿ A cross platform library for getting the command line arguments.
https://github.com/lpil/argv

Last synced: about 2 months ago
JSON representation

➿ A cross platform library for getting the command line arguments.

Awesome Lists containing this project

README

        

# argv

A cross platform library for getting the command line arguments.

[![Package Version](https://img.shields.io/hexpm/v/argv)](https://hex.pm/packages/argv)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/argv/)

```sh
gleam add argv
```

```gleam
import argv
import gleam/io

pub fn main() {
case argv.load().arguments {
["hello", name] ->
io.println("Hello, " <> name <> "!")
_ ->
io.println("usage: ./program hello ")
}
}
```