File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ process.env.NODE_CONFIG_DIR = configDir;
15
15
16
16
const { version } = require ( './package.json' ) ;
17
17
18
- function load ( command = 'help ' , subcommand = '' ) {
18
+ function load ( command = '' , subcommand = '' ) {
19
19
const file = path . join ( __dirname , 'lib' , command , subcommand ) ;
20
20
try {
21
21
// eslint-disable-next-line global-require, import/no-dynamic-require
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const parseArgs = require('minimist')(process.argv.slice(2), {
13
13
} ,
14
14
} ) ;
15
15
16
- require ( './cli' ) ( parseArgs . _ [ 0 ] , parseArgs . _ . slice ( 1 ) , parseArgs )
16
+ require ( './cli' ) ( parseArgs . _ [ 0 ] || 'help' , parseArgs . _ . slice ( 1 ) , parseArgs )
17
17
. then ( msg => {
18
18
if ( msg ) console . log ( msg ) ;
19
19
process . exit ( ) ;
You can’t perform that action at this time.
0 commit comments