@oclif/plugin-help
Advanced tools
Comparing version 2.1.6 to 2.2.0
@@ -112,14 +112,17 @@ "use strict"; | ||
let body = list_1.renderList(flags.map(flag => { | ||
const label = []; | ||
if (flag.char) | ||
label.push(`-${flag.char[0]}`); | ||
if (flag.name) { | ||
if (flag.type === 'boolean' && flag.allowNo) { | ||
label.push(`--[no-]${flag.name.trim()}`); | ||
let left = flag.helpLabel; | ||
if (!left) { | ||
const label = []; | ||
if (flag.char) | ||
label.push(`-${flag.char[0]}`); | ||
if (flag.name) { | ||
if (flag.type === 'boolean' && flag.allowNo) { | ||
label.push(`--[no-]${flag.name.trim()}`); | ||
} | ||
else { | ||
label.push(`--${flag.name.trim()}`); | ||
} | ||
} | ||
else { | ||
label.push(`--${flag.name.trim()}`); | ||
} | ||
left = label.join(', '); | ||
} | ||
let left = label.join(', '); | ||
if (flag.type === 'option') { | ||
@@ -126,0 +129,0 @@ let value = flag.helpValue || flag.name; |
@@ -1,1 +0,1 @@ | ||
{"version":"2.1.6","commands":{"help":{"id":"help","description":"display help for <%= config.bin %>","pluginName":"@oclif/plugin-help","pluginType":"core","aliases":[],"flags":{"all":{"name":"all","type":"boolean","description":"see all commands in CLI","allowNo":false}},"args":[{"name":"command","description":"command to show help for","required":false}]}}} | ||
{"version":"2.2.0","commands":{"help":{"id":"help","description":"display help for <%= config.bin %>","pluginName":"@oclif/plugin-help","pluginType":"core","aliases":[],"flags":{"all":{"name":"all","type":"boolean","description":"see all commands in CLI","allowNo":false}},"args":[{"name":"command","description":"command to show help for","required":false}]}}} |
{ | ||
"name": "@oclif/plugin-help", | ||
"description": "standard help for oclif", | ||
"version": "2.1.6", | ||
"version": "2.2.0", | ||
"author": "Jeff Dickey @jdxcode", | ||
"bugs": "https://github.com/oclif/plugin-help/issues", | ||
"dependencies": { | ||
"@oclif/command": "^1.5.8", | ||
"@oclif/command": "^1.5.13", | ||
"chalk": "^2.4.1", | ||
@@ -18,3 +18,3 @@ "indent-string": "^3.2.0", | ||
"devDependencies": { | ||
"@oclif/config": "^1.12.0", | ||
"@oclif/config": "^1.13.0", | ||
"@oclif/dev-cli": "^1.21.0", | ||
@@ -21,0 +21,0 @@ "@oclif/errors": "^1.2.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42219
565
Updated@oclif/command@^1.5.13