tingerrr / hfsa

A small shell like arg parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

human friendly shell arguments

This is a small library for lexing and parsing strings into shell like arguments.

let args = hfsa::args("git commit -m 'my commit message'")?;
assert_eq!(args, ["git", "commit", "-m", "my commit message"]);

This is primarily used in a discord bot I wrote for personal use.

About

A small shell like arg parser

License:MIT License


Languages

Language:Rust 100.0%