clid.validate

Undocumented in source.

Members

Functions

Validate
bool Validate(string arg, int n)

Validates a command line argument.

Validate
bool Validate(string arg, string str)

Validates a command line argument.

doesNotExist
bool doesNotExist(string arg, string str)

Validates that the argument does not refer to anything on the filesystem.

isDir
bool isDir(string arg, string str)

Validates that argument refers to a valid directory.

isFile
bool isFile(string arg, string str)

Validates that argument refers to a valid file.

isNegative
bool isNegative(string arg, int value)

Makes sure a given argument is a negative number (n <= 0).

isNotEmpty
bool isNotEmpty(string arg, string str)

Validates that the string is not empty.

isPortNumber
bool isPortNumber(string arg, int value)

Checks that a given argument is a valid port number (n > 0 && n < 65536).

isPositive
bool isPositive(string arg, int value)

Makes sure a given argument is a positive number (n >= 0).

Meta