Registry / cli / gflags

gflags

JSON →
library2.3.0vcpkgunverified

A C++ library that implements commandline flags processing, allowing easy definition and parsing of command-line options.

vcpkg install gflags
INSTALL
IMPORT
SIG · GFLAGS
G
gflags
clicppv2.3.0
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.

gflags/gflags.h
#include <gflags/gflags.h>

Defines and parses a command-line flag

#include <gflags/gflags.h> #include <iostream> DEFINE_string(name, "world", "who to greet"); int main(int argc, char **argv) { gflags::ParseCommandLineFlags(&argc, &argv, true); std::cout << "Hello, " << FLAGS_name << "!" << std::endl; return 0; }
Debug
Known issues
gotchaGlobal flag definitions can cause ODR violations if used in headers
fix
Use DEFINE_* only in .cpp files; declare flags with DECLARE_* in headers
affects: all
Upgrade
Version history
2.3.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
28
OpenAI (training)
1
Resources

No resource links recorded.

gflags — pip install gflags · libregistry