Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. use std::process::Command;
  2.  
  3. const SET_BAZ: bool = true;
  4.  
  5. fn main() {
  6. let mut command = Command::new("foo");
  7. command.arg("--bar");
  8.  
  9. if SET_BAZ {
  10. command.arg("--baz");
  11. }
  12.  
  13. let result = command.arg("quux").status().unwrap();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement