acceptsFiles

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

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

T
acceptsFiles
(
T : IEntry
)
()

Examples

new Program("test")
    .add(new Option("c", "config", "path to config file")
        .accpetsFiles()
    )

See Also

FileSystemValidator, acceptsDirectories, acceptsPaths

Meta