Overview of bpaf APIs
masterbpaf is a lightweight and flexible command line argument parser for Rust that provides two distinct styles of API:
- Derive API: Uses procedural macros to generate parsers from structs. It is generally more convenient and requires less typing.
- Combinatoric API: Uses functional combinators to build parsers. It offers maximum flexibility and can reduce boilerplate by avoiding the need for intermediate structs.
You can mix and match both APIs within the same project. Both APIs share the same underlying features, keywords, and structure.