編輯

共用方式為


CommandLineConfiguration Class

Definition

Represents the configuration used by the Parser.

public ref class CommandLineConfiguration
public class CommandLineConfiguration
type CommandLineConfiguration = class
Public Class CommandLineConfiguration
Inheritance
CommandLineConfiguration

Constructors

CommandLineConfiguration(Command, Boolean, Boolean, Boolean, Boolean, LocalizationResources, IReadOnlyList<InvocationMiddleware>, Func<BindingContext, HelpBuilder>, TryReplaceToken)
CommandLineConfiguration(Command, Boolean, Boolean, Boolean, LocalizationResources, ResponseFileHandling, IReadOnlyList<InvocationMiddleware>, Func<BindingContext, HelpBuilder>)

Initializes a new instance of the CommandLineConfiguration class.

Properties

EnableDirectives

Gets whether directives are enabled.

EnableLegacyDoubleDashBehavior

Enables the legacy behavior of the -- token, which is to ignore parsing of subsequent tokens and place them in the UnparsedTokens list.

EnablePosixBundling

Gets whether POSIX bundling is enabled.

EnableTokenReplacement
LocalizationResources

Gets the localizable resources.

RootCommand

Gets the root command.

Methods

ThrowIfInvalid()

Throws an exception if the parser configuration is ambiguous or otherwise not valid.

Applies to