Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
argagg/argagg.hpp
✓ #include <argagg/argagg.hpp>
Parse command-line arguments with argagg
#include <argagg/argagg.hpp>
#include <iostream>
int main(int argc, char** argv) {
argagg::parser argparser {{
{"help", {"-h", "--help"}, "show help", 0},
{"name", {"-n", "--name"}, "your name", 1}
}};
auto args = argparser.parse(argc, argv);
if (args["help"]) {
std::cout << argparser;
return 0;
}
std::cout << "Hello, " << args["name"] << "!\n";
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.