diff --git a/lib/InteractiveOptions.ts b/lib/InteractiveOptions.ts index 6e405d6..5b126d7 100644 --- a/lib/InteractiveOptions.ts +++ b/lib/InteractiveOptions.ts @@ -210,7 +210,9 @@ export class InteractiveOptions extends Persistent { || opt.type === 'number' ) { const value = await new Input ({ - message: opt.message, + message: typeof opt.message === 'undefined' + ? `input ${opt.name}` + : opt.message, default: opt.default }) .run ();