ask_or_default: Read a Line from the Terminal, but with Default Values
Description
Ask a question and read from the terminal in interactive scenario
Usage
ask_or_default(..., default = "", end = "", level = "INFO")
Value
A character from the user's input, or the default value. See details.
Arguments
..., end, level
passed to cat2
default
default value to return in case of blank input
Details
The prompt string will ask a question, providing defaults. Users
need to enter the answer. If the answer is blank (no space), then returns the
default, otherwise returns the user input.