don't leave message empty on prompt

This commit is contained in:
Timo Hocker 2020-05-07 18:47:42 +02:00
parent 8780d9307b
commit ea690d3f8b

View File

@ -210,7 +210,9 @@ export class InteractiveOptions extends Persistent {
|| opt.type === 'number' || opt.type === 'number'
) { ) {
const value = await new Input ({ const value = await new Input ({
message: opt.message, message: typeof opt.message === 'undefined'
? `input ${opt.name}`
: opt.message,
default: opt.default default: opt.default
}) })
.run (); .run ();