🍺 BREW Explorer

← all formulae

gflags

brew install gflags v2.3.0 BSD-3-Clause

C++ library for parsing and handling command-line flags with minimal boilerplate.

Why you might care

Drop-in replacement for hand-rolled flag parsing in C++ projects; gflags auto-generates help text, validates types, and handles both GNU-style (--flag) and short (-f) flags. Widely used in Google-scale systems and Abseil-dependent projects. Choose this over manual argv iteration or simpler libraries if you need fine-grained control and automatic help/validation.

Categories

Alternatives

boost::program_options getopt argparse
6.8k
30-day installs · #468
23.6k
90-day · #464
92.0k
365-day · #449

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "boost::program_options",
    "getopt",
    "argparse"
  ],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [
    "library",
    "header-only-library",
    "parser"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Library for processing command-line flags",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:37:59+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "gflags",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://gflags.github.io/gflags/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "How To Use Gflags (formerly Google Commandline Flags)",
  "installs_30d": 6840,
  "installs_365d": 91964,
  "installs_90d": 23650,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-3-Clause",
  "llm_generated_at": "2026-06-20T23:45:03+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "gflags",
  "oldnames": [],
  "one_liner": "C++ library for parsing and handling command-line flags with minimal boilerplate.",
  "optional_dependencies": [],
  "rank_30d": 468,
  "rank_365d": 449,
  "rank_90d": 464,
  "raw_hash": "1f0ece3fc5c89d77",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/g/gflags.rb",
  "tap": "homebrew/core",
  "test_dependencies": [
    "cmake"
  ],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "2.3.0",
  "versioned_formulae": [],
  "why_use_this": "Drop-in replacement for hand-rolled flag parsing in C++ projects; gflags auto-generates help text, validates types, and handles both GNU-style (--flag) and short (-f) flags. Widely used in Google-scale systems and Abseil-dependent projects. Choose this over manual argv iteration or simpler libraries if you need fine-grained control and automatic help/validation."
}