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

Defines extension methods for ConfigurationBuilder.

Required Methods§

source

fn add_command_line(&mut self) -> &mut Self

Adds the command line configuration source.

source

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

Adds the command line configuration source.

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

Object Safety§

This trait is not object safe.

Implementors§