SHARE
TWEET

Untitled

a guest Mar 18th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top