Skip to content

default and allow_empty #316

@Masber

Description

@Masber

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions