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-08-28
Health v2 · maintenance only
84/100
- Activity 94
- Release rhythm 62
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 228
- age_days: 4883
- days_rel: 42
- days_push: 39
- n_releases_24m: 2
Adoption not part of the score
3025 stars · 854 forks observed · 2026-08-28
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-08-28 · 575e4a8a96fc
- homepage: https://gflags.github.io/gflags/ · fetched 2026-08-29 · 8df2d8392b11
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gflags/gflags | main | 84 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem