mcy / best

The Best Library: a C++ STL replacement
Apache License 2.0
158 stars 1 forks source link

Add CLI apps, and a flags library #15

Closed mcy closed 2 months ago

mcy commented 2 months ago

This change adds best::app, which is best's main() replacement. It also beings in best::cli and best::parse_flags, which provide a structured mechanism for defining and parsing complex command-line flags.

This change includes a binary, //best/cli:toy, which demonstrates all of the flag parser's features.

It also includes some new integer parsing APIs, and gives the unit testing framework a flags struct: unit test can finally be filtered by name!