cute::opt

Function switch

Source
pub fn switch<S: State>(name: &str, state: S) -> Opt<'_, S>
Expand description

Creates a new switch option that doesn’t consume the next argument