File tree Expand file tree Collapse file tree 5 files changed +1660
-2682
lines changed
Expand file tree Collapse file tree 5 files changed +1660
-2682
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ var cli = {};
88module . exports = cli ;
99
1010cli . 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 ) ;
You can’t perform that action at this time.
0 commit comments