Current section
Files
Jump to
Current section
Files
README.md
# arglet
[](https://hex.pm/packages/arglet)
[](https://arglet.hexdocs.pm/)
[](https://github.com/peregrinefinch/arglet/actions/workflows/test.yml)
A little argument parser for Pooka. Give each option a name, and let the words find their seats.
```sh
pooka add arglet
```
```pooka
module main
import arglet
main() {
let expected = [arglet.flag("quiet", "q", "Say less")]
let assert Ok(args) = arglet.parse(arglet.arguments(), expected)
echo args.has("quiet")
}
```
Long and short options, grouped switches, repeated values and `--` are welcome.
Read the [documentation](https://arglet.hexdocs.pm/) for the rest of the guest list.
## Licence
Licensed under the [Apache License, Version 2.0](LICENSE).