Microsoft.Extensions.Configuration.CommandLineConfigurationExtensions
Extension methods for registering CommandLineConfigurationProvider with IConfigurationBuilder.
public static IConfigurationBuilder AddCommandLine(this IConfigurationBuilder configurationBuilder, string[] args)
Adds a CommandLineConfigurationProvider IConfigurationProvider
that reads configuration values from the command line.
public static IConfigurationBuilder AddCommandLine(this IConfigurationBuilder configurationBuilder, string[] args, IDictionary<string, string> switchMappings)
Adds a CommandLineConfigurationProvider IConfigurationProvider that reads
configuration values from the command line using the specified switch mappings.
public static IConfigurationBuilder AddCommandLine(this IConfigurationBuilder builder, Action<CommandLineConfigurationSource> configureSource)
Adds an IConfigurationProvider that reads configuration values from the command line.