@@ -23,8 +23,8 @@ Options:
2323 -b, --binary The path to the PHP executable. Defaults to "php".
2424 -e, --extension The extension of the PHP files to process. Defaults to "php".
2525 -m, --mode The operation mode of the minifier. Defaults to "${ TransformMode . Safe } ".
26- -r , --recursive Whether to process the input directory recursively .
27- -s , --silent Whether to silence the minifier output .
26+ -q , --quiet Whether to silence the minifier output .
27+ -r , --recurse Whether to process the input directory recursively .
2828 -h, --help Display this help.
2929 -v, --version Output the version number.
3030` ;
3939 extension : { short : "e" , type : "string" , default : "php" } ,
4040 help : { short : "h" , type : "boolean" , default : false } ,
4141 mode : { short : "m" , type : "string" , default : TransformMode . Safe } ,
42- recursive : { short : "r " , type : "boolean" , default : false } ,
43- silent : { short : "s " , type : "boolean" , default : false } ,
42+ quiet : { short : "q " , type : "boolean" , default : false } ,
43+ recurse : { short : "r " , type : "boolean" , default : false } ,
4444 version : { short : "v" , type : "boolean" , default : false }
4545 } } ) ;
4646
7373 await using transformer = values . mode == TransformMode . Fast ? new FastTransformer ( values . binary ) : new SafeTransformer ( values . binary ) ;
7474
7575 const extension = `.${ values . extension } ` ;
76- const files = await readdir ( input , { recursive : values . recursive , withFileTypes : true } ) ;
76+ const files = await readdir ( input , { recursive : values . recurse , withFileTypes : true } ) ;
7777 for ( const file of files . filter ( item => item . isFile ( ) && extname ( item . name ) == extension ) ) {
7878 const fullPath = join ( file . parentPath , file . name ) ;
7979 const relativePath = relative ( input , fullPath ) ;
0 commit comments