Expand description
Lightweight validation helpers for common CLI patterns.
Functions§
- parse_
in_ range - Parse a typed value from
--key
, ensuring it falls in an optional inclusive range. - path_
exists - Validate that a path exists (file or dir).
- path_
is_ dir - Validate that a path is a directory.
- path_
is_ file - Validate that a path is a file.
- require
- Ensure a key is present:
--key
(flag) or--key <val>
/--key=<val>
.