Class InputFactory
Object
InputFactory
SelectParam<Path>
factory for inputs.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic SelectParam
<Optional<Path>> pathOrDirectoryOrGlobOrExtension
(String[] arguments) Creates aSelectParam
for path, directory, glob, or file extension inputs.
-
Method Details
-
pathOrDirectoryOrGlobOrExtension
public static SelectParam<Optional<Path>> pathOrDirectoryOrGlobOrExtension(String[] arguments) throws InvalidPathArgumentException Creates aSelectParam
for path, directory, glob, or file extension inputs.- Parameters:
arguments
- the command-line arguments to parse- Returns:
- a
SelectParam
for an optionalPath
- Throws:
InvalidPathArgumentException
- if the arguments cannot be parsed into a valid path
-