Appends a list of arguments to the argument array to pass to wasm.
(&mut self, args: &[impl AsRef<str>])
| 223 | |
| 224 | /// Appends a list of arguments to the argument array to pass to wasm. |
| 225 | pub fn args(&mut self, args: &[impl AsRef<str>]) -> &mut Self { |
| 226 | self.cli |
| 227 | .arguments |
| 228 | .extend(args.iter().map(|a| a.as_ref().to_owned())); |
| 229 | self |
| 230 | } |
| 231 | |
| 232 | /// Appends a single argument to get passed to wasm. |
| 233 | pub fn arg(&mut self, arg: impl AsRef<str>) -> &mut Self { |