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