From eb74ca631aac80f03418186ba7bd78cff0d68686 Mon Sep 17 00:00:00 2001 From: Scott Lowe Date: Fri, 21 Aug 2020 12:41:35 +0200 Subject: [PATCH] Fix help template bug affecting discrete value options Change-type: patch Signed-off-by: Scott Lowe --- patches/all/@oclif+plugin-help+3.2.0.patch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/patches/all/@oclif+plugin-help+3.2.0.patch b/patches/all/@oclif+plugin-help+3.2.0.patch index 27bb3541..f3322ebb 100644 --- a/patches/all/@oclif+plugin-help+3.2.0.patch +++ b/patches/all/@oclif+plugin-help+3.2.0.patch @@ -1,5 +1,5 @@ diff --git a/node_modules/@oclif/plugin-help/lib/command.js b/node_modules/@oclif/plugin-help/lib/command.js -index 1caa65b..b84a5b5 100644 +index 1caa65b..e205faf 100644 --- a/node_modules/@oclif/plugin-help/lib/command.js +++ b/node_modules/@oclif/plugin-help/lib/command.js @@ -87,7 +87,7 @@ class CommandHelp { @@ -11,13 +11,14 @@ index 1caa65b..b84a5b5 100644 let description = a.description || ''; if (a.default) description = `[default: ${a.default}] ${description}`; -@@ -131,8 +131,7 @@ class CommandHelp { +@@ -130,9 +130,7 @@ class CommandHelp { + if (!flag.helpValue && flag.options) { value = flag.options.join('|'); } - if (!value.includes('|')) +- if (!value.includes('|')) - value = underline(value); - left += `=${value}`; -+ left += ` <${value}>`; ++ left += ` <${value}>`; } let right = flag.description || ''; if (flag.type === 'option' && flag.default) {