dialoguer icon indicating copy to clipboard operation
dialoguer copied to clipboard

default and allow_empty

Open Masber opened this issue 1 year ago • 0 comments

Dear dialoguer community,

I have an example like this

Input::new()
        .with_prompt("Type socks5 proxy URL")
        .default("socks5h://127.0.0.1:1080".to_string())
        .allow_empty(true)
        .interact_text()
        .unwrap();

Would it be possible to allow the user to enter an empty value using default and allow_empty functions combined?

thank you

Masber avatar Jul 30 '24 07:07 Masber