MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / has_arg_flag

Function has_arg_flag

src/bin/cargo-lockbud.rs:43–46  ·  view source on GitHub ↗

Determines whether a `--flag` is present.

(name: &str)

Source from the content-addressed store, hash-verified

41
42// Determines whether a `--flag` is present.
43fn has_arg_flag(name: &str) -> bool {
44 let mut args = std::env::args().take_while(|val| val != "--");
45 args.any(|val| val == name)
46}
47
48fn in_cargo_lockbud() {
49 // Now we run `cargo build $FLAGS $ARGS`, giving the user the

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected