Argh! v1.1.0 Release Notes
Release Date: 2017-09-09 // over 6 years ago-
The main changes:
👍 Multi-name flag/option support. Just provide a list of alternate names in
{ ... }
.
The first match will return.
Example:
cmdl({ "-t", "--threshold"}, 128) >> theshold;
If eithert
orthreshold
were specified (dashes are ignored), setthreshold
to that value.
0️⃣ Otherwise use the default:128
.📜 No need to provide
argc
to parser.
You can now write:int main(int, char\* argv[]) { argh::parser cmdl(argv); // Look Ma! no argc!// ....
🔨 Some internal refactoring.