Skip to content

PathFlagOptions

Options accepted by flag.path().

Signatures

ts
interface PathFlagOptions {}

Members

Properties

mustExist

Reject the value if nothing exists at the path.

ts
mustExist?: boolean;

type

Require the path to be a file or a directory. Implies existence.

ts
type?: "file" | "directory";

See Also

Released under the MIT License.