Skip to main content

README.md

# Sweep

[![Hex.pm Version](https://img.shields.io/hexpm/v/sweep?style=flat&link=https%3A%2F%2Fhex.pm%2Fpackages%2Fkiln)](https://hex.pm/packages/sweep)
[![builds.sr.ht status](https://builds.sr.ht/~nomorepanic/sweep/commits/main/test-current.yaml.svg)](https://builds.sr.ht/~nomorepanic/sweep/commits/main/test-current.yaml?)

Easy cli parser for easy mix commands

## Usage

Sweep takes a raw string or a mix task arguments list:

```elixir
input = "hello --slug world" || ["hello", "--slug", "world"]
Sweep.parse(input, ["name"], [slug: :string])
```