macOS
brew install argclocal Homebrew formula metadata
sudo port install argcMacPorts ports tree · devel/argc/Portfile · 来源: api.github.com
安装
brew install argclocal Homebrew formula metadata
sudo port install argcMacPorts ports tree · devel/argc/Portfile · 来源: api.github.com
nix profile install nixpkgs#argcnixpkgs package indexes · pkgs/by-name/ar/argc/package.nix · 来源: api.github.com
概览
Easily create and use cli based on bash script
历史
Argc is a Rust-distributed command-line tool for writing Bash CLIs and command runners from annotated shell comments. It generates argument parsing, usage text, completions, man pages, and standalone Bash scripts while keeping the user's command logic in ordinary shell functions.
The GitHub repository was created in February 2022, and the earliest GitHub release visible through the releases API is v0.2.1 from the same month. The project has since grown into a 1.x tool with documented specifications for comment tags such as `@cmd`, `@arg`, `@option`, `@flag`, `@env`, and `@meta`.
The README documents installation through Cargo, Homebrew/Linuxbrew, AUR, release binaries, a shell installer, and GitHub Actions. Homebrew builds it as a Rust formula, generates completions, and tests command-runner creation with `argc --argc-create`, which reflects its dual role as both parser generator and task runner.
In CLI mode, a script adds comment tags above Bash code and evaluates `argc --argc-eval` to bind parsed arguments into `argc_` variables. In command-runner mode, users keep recipes in `Argcfile.sh`, generate one with `argc --argc-create`, and run recipes much like a Makefile-style task runner.
Argc is package-nerd bait because it gives Bash scripts a structured CLI surface without forcing a rewrite in Go, Rust, Python, or Node. It also sits at an interesting boundary: installed as one compiled binary, but primarily useful for making shell scripts more distributable, documented, and completion-friendly.
安全态势
没有找到 argc 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
Argcfile.shArgcfile.sh可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
argc | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/sigoden/argc
安装元数据
| 软件包键 | brew:argc |
|---|---|
| 版本 | 1.24.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/argc |
| 主页 | https://github.com/sigoden/argc |
| 仓库 | https://github.com/sigoden/argc |
| 上游文档 | https://github.com/sigoden/argc#readme |
| 许可证 | Apache-2.0 OR MIT |
| 源码归档 | https://github.com/sigoden/argc/archive/refs/tags/v1.24.0.tar.gz |
| 最后更新 | 2026-05-20T06:35:58Z |
| Pulse | updated |
| 构建依赖 | rust |
| 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 | argc |
| 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 软件包链接分开显示。
argc
nix profile install nixpkgs#argcargc
sudo port install argc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.