@antora/cli
Advanced tools
Comparing version 1.1.1 to 2.0.0-beta.1
@@ -7,2 +7,4 @@ 'use strict' | ||
const QUOTED_DEFAULT_VALUE_RX = / \(default: "([^"]+)"\)/ | ||
// TODO include common options when outputting help for a (sub)command | ||
@@ -14,6 +16,3 @@ Command.prototype.helpInformation = function () { | ||
.reduce((accum, line) => { | ||
if (line === '\n') { | ||
const prevLine = accum[accum.length - 1] | ||
if (prevLine === undefined || !(prevLine === '\n' || prevLine.endsWith(':\n'))) accum.push(line) | ||
} else if (line.startsWith('Usage: ')) { | ||
if (line.startsWith('Usage: ')) { | ||
if (this.parent) { | ||
@@ -29,2 +28,4 @@ let ancestor = this | ||
accum.push(line.trimRight().replace(' output', ' Output') + '.\n') | ||
} else if (~line.indexOf('"')) { | ||
accum.push(line.replace(QUOTED_DEFAULT_VALUE_RX, ' (default: $1)')) | ||
} else { | ||
@@ -31,0 +32,0 @@ accum.push(line) |
{ | ||
"name": "@antora/cli", | ||
"version": "1.1.1", | ||
"version": "2.0.0-beta.1", | ||
"description": "The command line interface for Antora.", | ||
@@ -21,3 +21,3 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/playbook-builder": "1.1.1", | ||
"@antora/playbook-builder": "2.0.0-beta.1", | ||
"commander": "^2.18.0" | ||
@@ -24,0 +24,0 @@ }, |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
+ Added@antora/playbook-builder@2.0.0-beta.1(transitive)
+ Addedcamelcase-keys@5.2.0(transitive)
+ Addedmap-obj@3.1.0(transitive)
- Removed@antora/playbook-builder@1.1.1(transitive)
- Removedcamelcase@4.1.0(transitive)
- Removedcamelcase-keys@4.2.0(transitive)
- Removedmap-obj@2.0.0(transitive)