MCPcopy Create free account
hub / github.com/assert-rs/assert_cmd / args

Method args

src/cmd.rs:293–300  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers 2

cargo_bin_cmdFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected