File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ function parseOptions(args) {
414414 "test_folder" : "" ,
415415 "test_file" : "" ,
416416 } ;
417- var correspondances = {
417+ var correspondences = {
418418 "--resource-suffix" : "resource_suffix" ,
419419 "--doc-folder" : "doc_folder" ,
420420 "--test-folder" : "test_folder" ,
@@ -423,17 +423,13 @@ function parseOptions(args) {
423423 } ;
424424
425425 for ( var i = 0 ; i < args . length ; ++ i ) {
426- if ( args [ i ] === "--resource-suffix"
427- || args [ i ] === "--doc-folder"
428- || args [ i ] === "--test-folder"
429- || args [ i ] === "--test-file"
430- || args [ i ] === "--crate-name" ) {
426+ if ( correspondences . hasOwnProperty ( args [ i ] ) ) {
431427 i += 1 ;
432428 if ( i >= args . length ) {
433429 console . log ( "Missing argument after `" + args [ i - 1 ] + "` option." ) ;
434430 return null ;
435431 }
436- opts [ correspondances [ args [ i - 1 ] ] ] = args [ i ] ;
432+ opts [ correspondences [ args [ i - 1 ] ] ] = args [ i ] ;
437433 } else if ( args [ i ] === "--help" ) {
438434 showHelp ( ) ;
439435 process . exit ( 0 ) ;
You can’t perform that action at this time.
0 commit comments