gflags/gflags
The gflags package contains a C++ library that implements commandline flags processing. It includes built-in support for standard types such as string and the ability to define flags in the source file in which they are used. Online documentation available at: observed · 2026-10-15
Health v2 · maintenance only
78/100
- Activity 86
- Release rhythm 55
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-22. Adoption (stars, forks) is never an input.
- gap_med: 228
- age_days: 4932
- days_rel: 91
- days_push: 88
- n_releases_24m: 2
Adoption not part of the score
3030 stars · 855 forks observed · 2026-10-15
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
gflags is a C++ library for commandline flags processing, originally developed by Google. It supports built-in standard types and allows flags to be defined in the source file where they are used rather than centrally in main().
Use cases
- parse commandline flags in a C++ application
- define flags next to the code that uses them
- validate flag values with sanity checks
- replace getopt with a more flexible flag library
- manage configuration flags across a large C++ codebase
When to choose
- you need distributed flag definitions across source files in C++
- you want a mature, widely-used commandline flag library with CMake/Bazel support
- your project already uses gflags and only needs maintenance releases
When to avoid
- you are starting a new project using Abseil (prefer Abseil's flags library)
- you need actively developed new features
- you are not writing C++
Facets
library · maturity maintenance
cli parser developer-tools developer-tools cross-platform cpp cross-platform windows commandline-flags google cmake bazel configuration command-line linux macos
2 sources
- readme: https://github.com/gflags/gflags · fetched 2026-10-15 · 575e4a8a96fc
- homepage: https://gflags.github.io/gflags/ · fetched 2026-08-29 · 8df2d8392b11
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gflags/gflags | main | 78 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem