mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Add Execs::args
This adds the `Execs::args` method which forwards to `ProcessBuilder::args` to specify multiple command arguments at once.
This commit is contained in:
parent
7e5ab66784
commit
f9ba89b0cd
@ -764,6 +764,13 @@ impl Execs {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn args<T: AsRef<OsStr>>(&mut self, args: &[T]) -> &mut Self {
|
||||
if let Some(ref mut p) = self.process_builder {
|
||||
p.args(args);
|
||||
}
|
||||
self
|
||||
}
|
||||
|
||||
pub fn cwd<T: AsRef<OsStr>>(&mut self, path: T) -> &mut Self {
|
||||
if let Some(ref mut p) = self.process_builder {
|
||||
if let Some(cwd) = p.get_cwd() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user