macOS
brew install gflagslocal Homebrew formula metadata
sudo port install gflagsMacPorts ports tree · devel/gflags/Portfile · 来源: api.github.com
安装
brew install gflagslocal Homebrew formula metadata
sudo port install gflagsMacPorts ports tree · devel/gflags/Portfile · 来源: api.github.com
sudo apk add gflagsAlpine Linux edge package indexes · gflags · 来源: dl-cdn.alpinelinux.org
sudo dnf install gflagsFedora Rawhide package metadata · gflags · 来源: dl.fedoraproject.org
nix profile install nixpkgs#gflagsnixpkgs package indexes · pkgs/by-name/gf/gflags/package.nix · 来源: api.github.com
sudo pacman -S gflagsArch Linux sync databases · gflags · 来源: geo.mirror.pkgbuild.com
sudo zypper install gflagsopenSUSE Tumbleweed package metadata · gflags · 来源: download.opensuse.org
sudo apt install libgflags-devDebian stable package indexes · libgflags-dev · 来源: deb.debian.org
概览
Library for processing command-line flags
历史
gflags is the open-source C++ command-line flags library that began as Google Commandline Flags. Its distinguishing design is that flag definitions can live in the source file that uses them, with the library collecting, parsing, validating, and documenting those flags for an executable.
The changelog records a Google Inc. 0.1 release in December 2006, followed by 1.0 in October 2008 and several google-gflags releases through 2011. In January 2012, the project was renamed from google-gflags to gflags as Google stepped back from ownership and Andreas Schuh became maintainer.
gflags spread through C++ infrastructure because it offered a Google-style alternative to getopt-like parsers: each library or translation unit could declare its own flags, while users still received unified help output and parsing behavior. Later releases emphasized package and build-system integration, including CMake, Bazel, pkg-config, Homebrew, Debian/Ubuntu packages, and vcpkg.
Practitioners add `DEFINE_*` and `DECLARE_*` macros in C++ code, link the library, call the parser during program startup, and then read `FLAGS_name` variables from the relevant code. The installation docs cover use through distro packages, Homebrew, Bazel, vcpkg, and CMake.
gflags matters to package maintainers because it is both a runtime library and a build-system integration target for many C++ projects. The long namespace transition from `google` to `gflags`, plus compatibility for projects such as glog, made ABI and include-path behavior unusually important.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
gflags_completions.sh | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/gflags/gflags
安装元数据
| 软件包键 | brew:gflags |
|---|---|
| 版本 | 2.3.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/gflags |
| 主页 | https://gflags.github.io/gflags/ |
| 仓库 | https://github.com/gflags/gflags |
| 上游文档 | https://gflags.github.io/gflags |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://github.com/gflags/gflags/archive/refs/tags/v2.3.0.tar.gz |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gflags |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libgflags-dev 2.2.2-2
commandline flags module for C++ (development files)
https://gflags.github.io/gflags/
sudo apt install libgflags-devlibgflags-doc 2.2.2-2
documentation of gflags
https://gflags.github.io/gflags/
sudo apt install libgflags-doclibgflags2.2 2.2.2-2
commandline flags module for C++ (shared library)
https://gflags.github.io/gflags/
sudo apt install libgflags2.2gflags
nix profile install nixpkgs#gflagslibgflags-dev 2.2.2-2build1
commandline flags module for C++ (development files)
https://gflags.github.io/gflags/
sudo apt install libgflags-devlibgflags-doc 2.2.2-2build1
documentation of gflags
https://gflags.github.io/gflags/
sudo apt install libgflags-doclibgflags2.2 2.2.2-2build1
commandline flags module for C++ (shared library)
https://gflags.github.io/gflags/
sudo apt install libgflags2.2gflags 2.3.0-r0
The gflags package contains a C++ library that implements commandline flags processing.
https://gflags.github.io/gflags/
sudo apk add gflagsgflags-dev 2.3.0-r0
The gflags package contains a C++ library that implements commandline flags processing. (development files)
https://gflags.github.io/gflags/
sudo apk add gflags-devgflags 2.2.2-19.fc44
Library for commandline flag processing
https://gflags.github.io/gflags/
sudo dnf install gflagsgflags-devel 2.2.2-19.fc44
Development files for gflags
https://gflags.github.io/gflags/
sudo dnf install gflags-develgflags 2.2.2-6
C++ Library for commandline flag processing
https://github.com/schuhschuh/gflags
sudo pacman -S gflagsgflags 2.2.2-4.5
Library for commandline flag processing
https://github.com/gflags/gflags
sudo zypper install gflagsgflags-devel 2.2.2-4.5
Development files for the dynamic gflags library
https://github.com/gflags/gflags
sudo zypper install gflags-devellibgflags2_2 2.2.2-4.5
Library for commandline flag processing
https://github.com/gflags/gflags
sudo zypper install libgflags2_2gflags
sudo port install gflags来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.