Skip to content

Commit 15168b5

Browse files
committed
Modify condition to make explicit that the check is for number of args
1 parent 15907a6 commit 15168b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/cli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function main() {
9292

9393
// Extract the command:
9494
if ( args[ 0 ] === 'help' ) {
95-
if ( args[ 1 ] === void 0 ) {
95+
if ( args.length === 1 ) {
9696
return cli.help();
9797
}
9898
cmd = findCommand( args[ 1 ] );;

0 commit comments

Comments
 (0)