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

Method add_all_valueless

option_parser/src/lib.rs:233–238  ·  view source on GitHub ↗

Registers multiple flag-style options that do not take a value. Equivalent to calling [`add_valueless`](Self::add_valueless) for each element in the slice.

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

Source from the content-addressed store, hash-verified

231 /// Equivalent to calling [`add_valueless`](Self::add_valueless) for each
232 /// element in the slice.
233 pub fn add_all_valueless(&mut self, options: &[&str]) -> &mut Self {
234 for option in options {
235 self.add_valueless(option);
236 }
237 self
238 }
239
240 /// Returns the raw string value of an option, or `None` if the option was
241 /// not set or if its value is an empty string (e.g. `key=`).

Callers 1

parseMethod · 0.80

Calls 1

add_valuelessMethod · 0.80

Tested by

no test coverage detected