Skip to main content

short_watch_pos

Function short_watch_pos 

Source
fn short_watch_pos(
    arg: &[u8],
    value_less_short_flags: &HashSet<char>,
) -> Option<usize>
Expand description

Returns the byte index after w in a short flag cluster, if arg contains a watch flag.

clap parses a short flag cluster from left to right. Only short flags with no value in the active command may precede w; a value-taking flag such as -D or -C makes the remaining bytes its value instead.