Skip to main content

Module cli

Module cli 

Source
Expand description

Command-line interface for rusty-sponge.

The parsed Cli struct is consumed by lib.rs::run(). Mode resolution happens after parse (see crate::mode::resolve) so the precedence ladder can consider the CLI flag, the env var, and argv[0] together.

Structs§

Cli

Enums§

Subcommand

Functions§

strict_flag
Resolve the explicit --strict / --no-strict flag value the user supplied. Returns:
validate_target
Pre-write validation: fail fast (before reading any stdin) if the target is an existing directory. Per FR-014 + HINT-002, this MUST run before any expensive IO.