fastc-core · argv + flag parsing
fastc-core-cli
fastc-core-cli is the argument-parsing package in the fastc-core standard library. It reads argv, resolves short and long flags, and generates --help — with no ambient I/O, because argument access is a pure operation over the process's argv.
capability none — pure, does no I/O
What it ships (v0.1.0)
- Positional argument access
- Short (-v) and long (--verbose) flags
- Boolean, valued, and repeated flags
- Auto-generated --help output
When to use it
Any fastC CLI that needs to read flags without pulling in a heavyweight parser.
Example
use cli::has_flag;
fn main(caps: Caps) -> i32 {
let verbose = has_flag("--verbose");
return 0;
} fastc-core-cli — minimal usage fastc-core-cli v0.1.0
Roadmap
A subcommand framework is deliberately deferred to keep the surface small; compose subcommands by hand in v0.1.
Provenance
Like every fastc-core package, fastc-core-cli ships with
content-hashed, cosign-keyless-signed releases and SLSA L3 provenance. It is
vendored, not pulled from a central registry — there is no account to compromise.
See also
- github.com/fastc-lang/fastc-core-cli — source, at
v0.1.0 - docs.fastc-lang.com/language/fastc-core/ — the per-package API deep-dive
- All eleven fastc-core packages →