Adds multiple arguments to pass to the program. To pass a single argument see [`arg`]. [`arg`]: Command::arg() # Examples Basic usage: ```no_run use assert_cmd::Command; Command::new("ls") .args(&["-l", "-a"]) .unwrap(); ```
(&mut self, args: I)
| 291 | /// .unwrap(); |
| 292 | /// ``` |
| 293 | pub fn args<I, S>(&mut self, args: I) -> &mut Self |
| 294 | where |
| 295 | I: IntoIterator<Item = S>, |
| 296 | S: AsRef<ffi::OsStr>, |
| 297 | { |
| 298 | self.cmd.args(args); |
| 299 | self |
| 300 | } |
| 301 | |
| 302 | /// Inserts or updates an environment variable mapping. |
| 303 | /// |
no outgoing calls
no test coverage detected