prompt
If the option isn't given on the command line, prompt the user for manual input.
Note that if the option is defined with a validate or check, that validation will be run each time the user enters a value. This means that, unlike normal options, the validation for prompt options cannot reference other parameters.
Parameters
The text to prompt the user with
The default value to use if no input is given. If null, the prompt will be repeated until input is given.
If true, user input will not be shown on the screen. Useful for passwords and sensitive input.
Text to display directly after text. Defaults to ": ".
Show default to the user in the prompt.
If the option isn't given on the command line, prompt the user for manual input.
Parameters
The message asking for input to show the user
The value to return if the user enters an empty line, or null
to require a value
If true and default is not null
, the default choice will be shown in uppercase.
If true, the choices will be added to the prompt
The strings to accept for true
and false
inputs
A string to append after prompt when showing the user the prompt
The message to show the user if they enter a value that isn't one of the choiceStrings.