Skip to main content

ArgumentBase.ExistingOnly Method

Namespace: DensoCreate.Cli.Framework

Description

Adds an option to only accept 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