#arguments #command-line-arguments #parser #macro-derive #arguments-parser

pareg

Rust library with useful tools for command line argument parsing

4 releases (2 breaking)

new 0.3.0 Apr 19, 2024
0.2.0 Apr 19, 2024
0.1.1 Apr 18, 2024
0.1.0 Apr 18, 2024

#1271 in Rust patterns

Download history 240/week @ 2024-04-15

240 downloads per month

Custom license

35KB
485 lines

pareg

crates.io donwloads

Helpful utilities for parsing command line arguments.

Currently this crate doesn't contain any magic derive macro that would generate code that parses your arguments. There are many ways that arguments may be used and so there are only helper functions, traits and structures that help with the parsing in a more manual way. (But there may be such derive macro in the future.)

How to use it

Documentation and examples are available at the docs.

How to get it

It is available on crates.io:

With cargo

cargo add pareg

In Cargo.toml

[dependencies]
pareg = "0.1.0"

Dependencies

~330–790KB
~19K SLoC