acceptsPaths

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.

T
acceptsPaths
(
T : IEntry
)
(,)

Examples

new Program("rm")
     .add(new Argument("target", "target to remove")
         .acceptsPaths(true)
     )

See Also

FileSystemValidator, acceptsDirectories, acceptsFiles

Meta