Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::process::Command;
- const SET_BAZ: bool = true;
- fn main() {
- let mut command = Command::new("foo");
- command.arg("--bar");
- if SET_BAZ {
- command.arg("--baz");
- }
- let result = command.arg("quux").status().unwrap();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement