Helper function to require passing a path pointing to existing file or directory.
This function is meant to be used with UFCS, so that it can be placed within option definition chain.
new Program("rm") .add(new Argument("target", "target to remove") .acceptsPaths(true) )
FileSystemValidator, acceptsDirectories, acceptsFiles
See Implementation
Helper function to require passing a path pointing to existing file or directory.
This function is meant to be used with UFCS, so that it can be placed within option definition chain.