I want to parse special flags that begins with a dash and contains a single digit to mean compression levels for my zip like compression tool.
Right now I need to handle this with a special check inside a callback for positional arguments.
I would like to have something like:
opts.add_flag_fallback("-<digit>", [&](const char d) { compressionLevel = d - '0'; }, "Set compression level (0-9)");
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4