ICommandAppSettings Interface
Represents a command line application settings.
public interface ICommandAppSettings
- Namespace
- Spectre
.Console .Cli
Properties
- abstract string ApplicationName
- Gets or sets the application name.
- abstract string ApplicationVersion
- Gets or sets the application version (use it to override auto-detected value).
- abstract CaseSensitivity CaseSensitivity
- Gets or sets case sensitivity.
- abstract IAnsiConsole Console
-
Gets or sets the
IAnsiConsole
. - abstract Func<Exception, int> ExceptionHandler
-
Gets or sets a handler for Exceptions.
This handler will not be called, if
PropagateExceptions
is set totrue
. - abstract ICommandInterceptor Interceptor
-
Gets or sets the
ICommandInterceptor
used to intercept settings before it's being sent to the command. - abstract bool PropagateExceptions
-
Gets or sets a value indicating whether or not exceptions should be propagated.
Setting this to
true
will disable default Exception handling and anyExceptionHandler
, if set. - abstract ITypeRegistrarFrontend Registrar
- Gets the type registrar.
- abstract bool StrictParsing
- Gets or sets a value indicating whether or not parsing is strict.
- abstract bool ValidateExamples
- Gets or sets a value indicating whether or not examples should be validated.