Interface ICommandGroupDefaultActionBuilder<T>
Sets the sub-command a group runs when it is typed with nothing after it.
public interface ICommandGroupDefaultActionBuilder<out T> : ICommandGroupBuilder where T : ICommandGroupDefaultActionBuilder<out T>
Type Parameters
T
- Inherited Members
Methods
WithDefaultAction(string)
Sets the sub-command with the given name as the group's default. The sub-command must have
been added with WithCommand first, and must take no parameters.
T WithDefaultAction(string commandName)
Parameters
commandNamestring
Returns
- T
Exceptions
- ArgumentException
No sub-command has that name, or it takes parameters.