SetDefaultCommand<TDefaultCommand>() Method
Adds a default command.
void SetDefaultCommand<TDefaultCommand>()
where TDefaultCommand : class, ICommandLimiter<in TSettings>
- Namespace
- Spectre
.Console .Cli - Containing Type
- IConfigurator
<TSettings>
Remarks
This is the command that will run if the user doesn't specify one on the command line.
It must be able to execute successfully by itself ie. without requiring any command line
arguments, flags or option values.
Parameters
-
TDefaultCommand
- The default command type.