Advertisement
Guest User

Untitled

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