mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-21 09:51:58 +00:00
Fix help template bug affecting discrete value options
Change-type: patch Signed-off-by: Scott Lowe <scott@balena.io>
This commit is contained in:
parent
64ebebb121
commit
eb74ca631a
@ -1,5 +1,5 @@
|
|||||||
diff --git a/node_modules/@oclif/plugin-help/lib/command.js b/node_modules/@oclif/plugin-help/lib/command.js
|
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
|
--- a/node_modules/@oclif/plugin-help/lib/command.js
|
||||||
+++ b/node_modules/@oclif/plugin-help/lib/command.js
|
+++ b/node_modules/@oclif/plugin-help/lib/command.js
|
||||||
@@ -87,7 +87,7 @@ class CommandHelp {
|
@@ -87,7 +87,7 @@ class CommandHelp {
|
||||||
@ -11,13 +11,14 @@ index 1caa65b..b84a5b5 100644
|
|||||||
let description = a.description || '';
|
let description = a.description || '';
|
||||||
if (a.default)
|
if (a.default)
|
||||||
description = `[default: ${a.default}] ${description}`;
|
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('|');
|
value = flag.options.join('|');
|
||||||
}
|
}
|
||||||
if (!value.includes('|'))
|
- if (!value.includes('|'))
|
||||||
- value = underline(value);
|
- value = underline(value);
|
||||||
- left += `=${value}`;
|
- left += `=${value}`;
|
||||||
+ left += ` <${value}>`;
|
+ left += ` <${value}>`;
|
||||||
}
|
}
|
||||||
let right = flag.description || '';
|
let right = flag.description || '';
|
||||||
if (flag.type === 'option' && flag.default) {
|
if (flag.type === 'option' && flag.default) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user