const fooValue = await optionPrompt({
name: 'foo',
option: {
type: 'string',
default: 'default foo',
},
client: new Client(),
});
const val = fooGetter({ prompt: { message: 'Enter foo' } }); // 'foo value'
@throws {OptionsError} Throws an error if the option is required and no value
is provided or the value is invalid.
@group
Prompt the user for an option value based on the option's configuration.