https://github.com/lpil/argv
➿ A cross platform library for getting the command line arguments.
https://github.com/lpil/argv
Last synced: 7 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-22T18:40:45.000Z (over 1 year ago)
- Last Synced: 2025-01-22T05:41:54.294Z (6 months ago)
- Language: Gleam
- Homepage: https://hexdocs.pm/argv/
- Size: 6.84 KB
- Stars: 25
- 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.
[](https://hex.pm/packages/argv)
[](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 ")
}
}
```