Registry / cli / tclap
library1.2.5vcpkgunverified

Templatized command-line argument parser for C++

vcpkg install tclap
INSTALL
IMPORT
SIG · TCLAP
T
tclap
clicppv1.2.5
harness data pending
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.

Upgrade
Version history
1.2.5latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
OpenAI (training)
1
Resources

No resource links recorded.

tclap — pip install tclap · libregistry