Represents a command line application settings.
Properties
ApplicationName
: stringGets or sets the application name.
ApplicationVersion
: stringGets or sets the application version (use it to override auto-detected value).
CancellationExitCode
: intGets 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
: CaseSensitivityGets or sets case sensitivity.
ConvertFlagsToRemainingArguments
: boolGets 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
: CultureInfoGets 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
: HelpProviderStyleGets or sets the styles to used when rendering the help text.
Interceptor
: ICommandInterceptorGets or sets the ICommandInterceptor used to intercept settings before it's being sent to the command.
MaximumIndirectExamples
: intGets or sets a value indicating how many examples from direct children to show in the help text.
PropagateExceptions
: boolGets 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
: ITypeRegistrarFrontendGets the type registrar.
ShowOptionDefaultValues
: boolGets or sets a value indicating whether any default values for command options are shown in the help text.
StrictParsing
: boolGets or sets a value indicating whether parsing is strict.
TrimTrailingPeriod
: boolGets or sets a value indicating whether a trailing period of a description is trimmed in the help text.
ValidateExamples
: boolGets or sets a value indicating whether examples should be validated.