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: 21 days 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 (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-22T18:40:45.000Z (9 months ago)
- Last Synced: 2024-10-13T22:54:56.689Z (about 2 months ago)
- Language: Gleam
- Homepage: https://hexdocs.pm/argv/
- Size: 6.84 KB
- Stars: 23
- 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 ")
}
}
```