macOS
brew install gengetoptlocal Homebrew formula metadata
sudo port install gengetoptMacPorts ports tree · devel/gengetopt/Portfile · 来源: api.github.com
安装
brew install gengetoptlocal Homebrew formula metadata
sudo port install gengetoptMacPorts ports tree · devel/gengetopt/Portfile · 来源: api.github.com
sudo apk add gengetoptAlpine Linux edge package indexes · gengetopt · 来源: dl-cdn.alpinelinux.org
sudo apt install gengetoptDebian stable package indexes · gengetopt · 来源: deb.debian.org
sudo dnf install gengetoptFedora Rawhide package metadata · gengetopt · 来源: dl.fedoraproject.org
nix profile install nixpkgs#gengetoptnixpkgs package indexes · pkgs/by-name/ge/gengetopt/package.nix · 来源: api.github.com
sudo pacman -S gengetoptArch Linux sync databases · gengetopt · 来源: geo.mirror.pkgbuild.com
sudo zypper install gengetoptopenSUSE Tumbleweed package metadata · gengetopt · 来源: download.opensuse.org
概览
Generate C code to parse command-line arguments via getopt_long
历史
GNU Gengetopt is a GNU programming tool that generates C command-line option parsers from declarative option descriptions. Its generated code uses getopt_long and fills a struct, saving C and C++ programmers from hand-writing the same option parsing, validation, help, and configuration-file plumbing.
The Savannah README says Gengetopt was originally written by Roberto Arturo Tena Sanchez and later maintained by Tomas Volf. The manual positions it as a tool for C and C++ programmers and documents .ggo input files, generated parsers, generated help output, configuration-file parsing, multiple parsers, and operation on systems without getopt_long.
Gengetopt's adoption came through the GNU toolchain ecosystem: GNU FTP hosted regular tarball releases from the early 2000s through the 2.23 release in 2019, and the tool appears in Unix package managers as a code generator for projects that want generated C parsers without taking on a larger framework.
Practitioners write a .ggo file describing short and long options, defaults, required values, groups, modes, and help text, then run gengetopt to produce C source and header files. Autoconf and Automake projects use it when generated parser code is preferable to a hand-maintained getopt_long loop.
Gengetopt is a classic small GNU build dependency: it is rarely the star of a system, but it sits in source-release and distribution workflows where reproducible generated C code is easier to audit and package than bespoke argument parsers.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
gengetopt | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://www.gnu.org/software/gengetopt/
安装元数据
| 软件包键 | brew:gengetopt |
|---|---|
| 版本 | 2.23 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/gengetopt |
| 主页 | https://www.gnu.org/software/gengetopt/ |
| 上游文档 | https://www.gnu.org/software/gengetopt |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://ftpmirror.gnu.org/gnu/gengetopt/gengetopt-2.23.tar.xz |
| 构建依赖 | texinfo |
| Bottle | 可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gengetopt |
| 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 软件包链接分开显示。
gengetopt 2.23+dfsg1-1
skeleton main.c generator
https://www.gnu.org/software/gengetopt/
sudo apt install gengetoptgengetopt
nix profile install nixpkgs#gengetoptgengetopt 2.23+dfsg1-1
skeleton main.c generator
https://www.gnu.org/software/gengetopt/
sudo apt install gengetoptgengetopt 2.23-r2
Tool to write command line option parsing code for C programs
https://www.gnu.org/software/gengetopt/
sudo apk add gengetoptgengetopt-dev 2.23-r2
Tool to write command line option parsing code for C programs (development files)
https://www.gnu.org/software/gengetopt/
sudo apk add gengetopt-devgengetopt-doc 2.23-r2
Tool to write command line option parsing code for C programs (documentation)
https://www.gnu.org/software/gengetopt/
sudo apk add gengetopt-docgengetopt 2.23-17.fc44
Tool to write command line option parsing code for C programs
http://www.gnu.org/software/gengetopt/
sudo dnf install gengetoptgengetopt 2.23-4
A tool to write command line option parsing code for C programs
https://www.gnu.org/software/gengetopt/gengetopt.html
sudo pacman -S gengetoptgengetopt 2.23-1.24
Commandline parser generator
https://www.gnu.org/software/gengetopt/
sudo zypper install gengetoptgengetopt
sudo port install gengetopt来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.