CommandBase.AddOption<T>(string,string,string,bool) Method
Namespace: DensoCreate.Cli.Framework
Description
Registers an option.
Argument
Name | Type | Description |
---|---|---|
name | string | Name |
alias | string | Option alias |
description | string | Description |
required | bool | Required or not (optional) |
Return value
- TOption
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | CliInternalException | If name is null or an empty string |