Skip to main content

parse_with_uuid_fallback

Function parse_with_uuid_fallback 

Source
pub fn parse_with_uuid_fallback(argv: Vec<String>) -> Result<Cli, Error>
Expand description

Parse a full argv vector, falling back to get <UUID> when the user invoked socket-patch <UUID> [...] directly. Returns the original clap error if the fallback also fails or if the first arg isn’t a UUID.

Pulled out of main.rs so the fallback path is unit-testable.