Skip to content

Commit 861372c

Browse files
committed
Bump dependencies & node versions
1 parent 8caaf8f commit 861372c

File tree

5 files changed

+1660
-2682
lines changed

5 files changed

+1660
-2682
lines changed

.github/workflows/nodejs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
node-version: [10, 12, 14]
17+
node-version: [18, 20, 22]
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525
- run: npm install

lib/cli.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ var cli = {};
88
module.exports = cli;
99

1010
cli.getProgram = function() {
11-
program.name = pkg.name;
12-
13-
program.version(pkg.version)
11+
program
12+
.name(pkg.name)
13+
.description(pkg.description)
14+
.version(pkg.version)
1415
.usage('[options] input.html output.html');
1516

1617
Object.keys(cli.options).forEach(function(key) {
@@ -124,7 +125,7 @@ cli.argsToOptions = function(program) {
124125
var result = { webResources: {} };
125126
Object.keys(cli.options).forEach(function(key) {
126127
var option = cli.options[key];
127-
var value = program[option.pMap];
128+
var value = program.getOptionValue(option.pMap);
128129
if (value !== undefined) {
129130
if (option.coercion) {
130131
value = option.coercion(value);

0 commit comments

Comments
 (0)