Skip to main content

CommandLineExt

Trait CommandLineExt 

Source
pub trait CommandLineExt: Sized {
    // Required methods
    fn add_command_line(self) -> Self;
    fn add_command_line_map<S: AsRef<str>>(
        self,
        switch_mappings: &[(S, S)],
    ) -> Self;
}
Available on crate feature cmd only.
Expand description

Defines command line extension methods for a configuration builder.

Required Methods§

Source

fn add_command_line(self) -> Self

Adds a command line configuration source.

Source

fn add_command_line_map<S: AsRef<str>>(self, switch_mappings: &[(S, S)]) -> Self

Adds a command line configuration source.

§Arguments
  • switch_mappings - The mapping of switches to configuration values

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§