MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / add_all

Method add_all

option_parser/src/lib.rs:205–211  ·  view source on GitHub ↗

Registers multiple value-requiring options at once. Equivalent to calling [`add`](Self::add) for each element in the slice.

(&mut self, options: &[&str])

Source from the content-addressed store, hash-verified

203 ///
204 /// Equivalent to calling [`add`](Self::add) for each element in the slice.
205 pub fn add_all(&mut self, options: &[&str]) -> &mut Self {
206 for option in options {
207 self.add(option);
208 }
209
210 self
211 }
212
213 /// Registers a flag-style option that does not take a value.
214 ///

Callers 2

test_add_allFunction · 0.80
parseMethod · 0.80

Calls 1

addMethod · 0.80

Tested by 1

test_add_allFunction · 0.64