Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lpil/argv
➿ A cross platform library for getting the command line arguments.
https://github.com/lpil/argv
Last synced: about 1 month ago
JSON representation
➿ A cross platform library for getting the command line arguments.
- Host: GitHub
- URL: https://github.com/lpil/argv
- Owner: lpil
- Created: 2023-12-22T16:40:15.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-22T18:40:45.000Z (8 months ago)
- Last Synced: 2024-09-16T17:53:09.794Z (about 2 months ago)
- Language: Gleam
- Homepage: https://hexdocs.pm/argv/
- Size: 6.84 KB
- Stars: 22
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-gleam - argv - [📚](https://hexdocs.pm/argv/) - A cross platform library for getting the command line arguments (Packages / Command Line)
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/iopub fn main() {
case argv.load().arguments {
["hello", name] ->
io.println("Hello, " <> name <> "!")
_ ->
io.println("usage: ./program hello ")
}
}
```