ArgumentBase Interface
Namespace: DensoCreate.Cli.Framework
Description
This is a base class that represents arguments for commands and options.
Inherit Base
| Name | Description |
|---|---|
| Taggable | This is a base class that implements tagging functionality. |
Derived From
| Name | Description |
|---|---|
| Argument | This is a class that represents arguments for commands and options. |
Property
| Name | Description |
|---|---|
| ArgumentType | Gets or sets the argument type. |
| DefaultValue | Gets the initial value. |
| Description | Gets or sets the description. |
| HasDefaultValue | Gets whether an initial value is available. |
| Name | Gets or sets the argument name. |
Method
| Name | Description |
|---|---|
| ExistingOnly | Adds an option to only accept existing files at the time of command execution. 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 executing the command. Only string type arguments can be used. |
| SetDefaultValue | Sets the initial value of the argument. If value is null, no initial value will be set. |