Reads a password either from the provided argument, via the system's askpass tool when enabled, or interactively via terminal prompt.
The prompt to show the user
Optional
An optional password string
Boolean flag to indicate if the system's askpass should be used
The password string
Reads a password either from the provided argument, via the system's askpass tool when enabled, or interactively via terminal prompt.