Determines whether a `--flag` is present.
(name: &str)
| 41 | |
| 42 | // Determines whether a `--flag` is present. |
| 43 | fn 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 | |
| 48 | fn in_cargo_lockbud() { |
| 49 | // Now we run `cargo build $FLAGS $ARGS`, giving the user the |