arglet

Package Version Hex Docs Tests

A little argument parser for Pooka. Give each option a name, and let the words find their seats.

pooka add arglet
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 for the rest of the guest list.

Licence

Licensed under the Apache License, Version 2.0.