Command ::new("ls") .arg("-l") .arg("-h") .spawn() .expect("ls command failed to start"); } The arg() method can be used to pass one argument to the program.
確定! 回上一頁