Fix help template bug affecting discrete value options

Change-type: patch
Signed-off-by: Scott Lowe <scott@balena.io>
This commit is contained in:
Scott Lowe 2020-08-21 12:41:35 +02:00
parent 64ebebb121
commit eb74ca631a

View File

@ -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) {