Skip to main content

OptionBase Interface

Namespace: DensoCreate.Cli.Framework

Description

Base class representing command options.

Inherit Base

NameDescription
TaggableBase class implementing tagging functionality.

Derived From

NameDescription
OptionClass representing command options.

Property

NameDescription
AliasesGets optional aliases.
ArgumentGets or sets optional arguments.
DescriptionGets or sets the optional description.
RequiredGets or sets whether the method is required.

Method

NameDescription
AddAliasAdds an optional alias.
AddAliasesAdds multiple optional aliases.
ExistingOnlyAdds an option to only accept existing files when the command is executed.
The argument type must be FileInfo, DirectoryInfo, or FileSystemInfo.
IsExistingOnlyDetermines whether the option to only accept existing files has been added.
IsLegalFilePathsOnlyDetermines whether the option to only accept valid file paths has been added.
LegalFilePathsOnlyAdds an option to only accept valid file paths when the command is executed.
Only string type arguments are accepted.
SetRequiredSets whether the option is required. The default is true.