pub fn ask_yn(prompt: String, default_yes: Option<bool>) -> Result<bool>
Expand description

Prompt the user to answer Y or N.

prompt will be printed as the question to answer. if default_yes is Some(true), entering a blank line equates to Y if default_yes is Some(false), entering a blank line equates to N if default_yes is None, Y or N must be explicitly entered, anything else is invalid

Returns true for Y, false for N