gflags
« Back to VersTracker
Description:
Library for processing command-line flags
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c-plus-plus cli libraries development
Install: brew install gflags
About:
Gflags is a C++ library that provides a flexible framework for processing command-line arguments. It allows developers to define flags declaratively, which are then automatically parsed and validated. Its main value is simplifying command-line interface development by handling parsing, type conversion, and help message generation.
Key Features:
  • Supports standard C++ types and custom validators
  • Automatic generation of usage help text
  • Cross-platform compatibility (Linux, macOS, Windows)
  • Supports flag definitions from multiple source files
Use Cases:
  • Building command-line tools with complex argument parsing
  • Standardizing flag handling across large C++ codebases
Alternatives:
  • CLI11 – Modern C++11/14/17 interface with rich features, often preferred for new projects
  • Boost.Program_options – Part of Boost ecosystem, more heavyweight but feature-complete
Version History
Detected Version Rev Change Commit
Jan 10, 2025 12:08am 0 VERSION_BUMP a2181a45