From ea690d3f8b5ba91e8276bf8641909bb5e96a1c79 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Thu, 7 May 2020 18:47:42 +0200 Subject: [PATCH] don't leave message empty on prompt --- lib/InteractiveOptions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ();