argparse
argparse copied to clipboard
A simple C++ header only command line argument parser
I was playing with this library and made the following in `main.cpp`: ```cpp #include #include #include #include "argparse.h" int main (int argc, const char * argv[]) { std::cout
Another nice to have enhancement is to allow arguments that take specific values (enumeration) with validation.
Although not a standard way and rarely seen, but some tools (Verilog simulators, UVM, ...) use + to indicate custom arguments. Examples are: ```bash +TEST=AXI_TEST +UVM_TESTNAME=read_modify_write_test +UVM_MAX_QUIT_COUNT=5,NO +UVM_TIMEOUT=200000,NO +UVM_PHASE_TRACE ```...