Registry / cli / go-flag

go-flag

JSON →
library0.1.0rscratesunverified

Command line parser library compatible with Go's flag package.

# Cargo.toml [dependencies] go-flag = "0.1.0"
INSTALL
IMPORT
SIG · GO-FLAG
G
go-flag
clirustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FlagSet
use go_flag::FlagSet;

Parse command-line arguments using Go-style flag definitions.

use go_flag::FlagSet; fn main() { let mut fs = FlagSet::new("myapp"); let name = fs.string("name", "world", "Your name"); fs.parse(std::env::args().skip(1)).unwrap(); println!("Hello, {}!", name); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
OpenAI (training)
1
Resources
go-flag — cargo add go-flag · libregistry