acceptsDirectories

Helper function to require passing a path pointing to existing directory.

This function is meant to be used with UFCS, so that it can be placed within option definition chain.

T
acceptsDirectories
(
T : IEntry
)
()

Examples

new Program("ls")
    .add(new Argument("directory", "directory to list")
        .acceptsDirectories()
    )

See Also

FileSystemValidator, acceptsFiles, acceptsPaths

Meta