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.
tclap/CmdLine.h
✓ #include <tclap/CmdLine.h>
Parse command-line arguments with tclap
#include <tclap/CmdLine.h>
#include <iostream>
int main(int argc, char** argv) {
try {
TCLAP::CmdLine cmd("Command description", ' ', "1.0");
TCLAP::ValueArg<std::string> nameArg("n", "name", "Your name", true, "", "string");
cmd.add(nameArg);
cmd.parse(argc, argv);
std::cout << "Hello, " << nameArg.getValue() << "!" << std::endl;
} catch (TCLAP::ArgException &e) {
std::cerr << "error: " << e.error() << " for arg " << e.argId() << std::endl;
}
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.