Skip to main content

OptionBase.ExistingOnly Method

Namespace: DensoCreate.Cli.Framework

Description​

Adds an option to accept only files that exist when the command is executed.
The argument type must be FileInfo, DirectoryInfo, or FileSystemInfo.

Return value​

Exceptions​

NameException ClassDescription
Invalid OperationCliInternalExceptionIf the argument type is not FileInfo, DirectoryInfo, or FileSystemInfo