OptionBase Interface
Namespace: DensoCreate.Cli.Framework
Description
Base class representing command options.
Inherit Base
| Name | Description |
|---|---|
| Taggable | Base class implementing tagging functionality. |
Derived From
| Name | Description |
|---|---|
| Option | Class representing command options. |
Property
| Name | Description |
|---|---|
| Aliases | Gets optional aliases. |
| Argument | Gets or sets optional arguments. |
| Description | Gets or sets the optional description. |
| Required | Gets or sets whether the method is required. |
Method
| Name | Description |
|---|---|
| AddAlias | Adds an optional alias. |
| AddAliases | Adds multiple optional aliases. |
| ExistingOnly | Adds an option to only accept existing files when the command is executed. The argument type must be FileInfo, DirectoryInfo, or FileSystemInfo. |
| IsExistingOnly | Determines whether the option to only accept existing files has been added. |
| IsLegalFilePathsOnly | Determines whether the option to only accept valid file paths has been added. |
| LegalFilePathsOnly | Adds an option to only accept valid file paths when the command is executed. Only string type arguments are accepted. |
| SetRequired | Sets whether the option is required. The default is true. |