ICommandAppSettings

Represents a command line application settings.

Represents a command line application settings.

Properties

ApplicationName : string

Gets or sets the application name.

ApplicationVersion : string

Gets or sets the application version (use it to override auto-detected value).

CancellationExitCode : int

Gets or sets the value used as the application exit code when it's aborted through the CancellationToken. The default cancellation exit code is 130.

CaseSensitivity : CaseSensitivity

Gets or sets case sensitivity.

ConvertFlagsToRemainingArguments : bool

Gets or sets a value indicating whether flags found on the command line that would normally result in a CommandParseException being thrown during parsing with the message "Flags cannot be assigned a value." should instead be added to the remaining argument collection.

Culture : CultureInfo

Gets or sets the culture.

ExceptionHandler : Func<Exception, ITypeResolver, int>

Gets or sets a handler for Exceptions. This handler will not be called, if PropagateExceptions is set to true. The ITypeResolver argument will only be not-null, when the exception occurs during execution of a command. I.e. only when the resolver is available.

HelpProviderStyles : HelpProviderStyle

Gets or sets the styles to used when rendering the help text.

Interceptor : ICommandInterceptor

Gets or sets the ICommandInterceptor used to intercept settings before it's being sent to the command.

MaximumIndirectExamples : int

Gets or sets a value indicating how many examples from direct children to show in the help text.

PropagateExceptions : bool

Gets or sets a value indicating whether exceptions should be propagated. Setting this to true will disable default Exception handling and any ExceptionHandler, if set.

Registrar : ITypeRegistrarFrontend

Gets the type registrar.

ShowOptionDefaultValues : bool

Gets or sets a value indicating whether any default values for command options are shown in the help text.

StrictParsing : bool

Gets or sets a value indicating whether parsing is strict.

TrimTrailingPeriod : bool

Gets or sets a value indicating whether a trailing period of a description is trimmed in the help text.

ValidateExamples : bool

Gets or sets a value indicating whether examples should be validated.