@antora/cli
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -6,3 +6,2 @@ 'use strict' | ||
const helpInformation = Command.prototype.helpInformation | ||
const indentation = ' ' | ||
@@ -13,3 +12,2 @@ // TODO include common options when outputting help for a (sub)command | ||
.call(this) | ||
.trimRight() | ||
.split(/^/m) | ||
@@ -20,9 +18,15 @@ .reduce((accum, line) => { | ||
if (prevLine === undefined || !(prevLine === '\n' || prevLine.endsWith(':\n'))) accum.push(line) | ||
} else if (line.startsWith(indentation + 'Usage: ') && this.parent) { | ||
let ancestor = this | ||
let commandCtx = [] | ||
while ((ancestor = ancestor.parent)) commandCtx.unshift(ancestor.name()) | ||
accum.push('Usage: ' + commandCtx.join(' ') + line.substr(8)) | ||
} else if (line.startsWith('Usage: ')) { | ||
if (this.parent) { | ||
let ancestor = this | ||
let commandCtx = [] | ||
while ((ancestor = ancestor.parent)) commandCtx.unshift(ancestor.name()) | ||
accum.push('Usage: ' + commandCtx.join(' ') + line.substr(6)) | ||
} else { | ||
accum.push(line) | ||
} | ||
} else if (line.startsWith(' -v,') || line.startsWith(' -h,')) { | ||
accum.push(line.trimRight().replace(' output', ' Output') + '.\n') | ||
} else { | ||
accum.push(line.substr(indentation.length)) | ||
accum.push(line) | ||
} | ||
@@ -32,3 +36,2 @@ return accum | ||
.join('') | ||
.concat('\n') | ||
} |
{ | ||
"name": "@antora/cli", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "The command line interface for Antora.", | ||
@@ -21,4 +21,4 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/playbook-builder": "1.1.0", | ||
"commander": "^2.17.1" | ||
"@antora/playbook-builder": "1.1.1", | ||
"commander": "^2.18.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
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
10703
191
+ Added@antora/playbook-builder@1.1.1(transitive)
- Removed@antora/playbook-builder@1.1.0(transitive)
Updatedcommander@^2.18.0