File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ function loadConfig(configPath) {
2121 return require ( path . resolve ( configPath ) )
2222}
2323
24- function writeStrategy ( program ) {
25- if ( program . output === undefined ) {
24+ function writeStrategy ( options ) {
25+ if ( options . output === undefined ) {
2626 return ( output ) => {
2727 process . stdout . write ( output )
2828 }
2929 }
3030 return ( output ) => {
31- fs . outputFileSync ( program . output , output )
31+ fs . outputFileSync ( options . output , output )
3232 }
3333}
3434
@@ -67,15 +67,15 @@ program.command('build')
6767 . usage ( '[options] <file ...>' )
6868 . option ( '-c, --config [path]' , 'Path to config file' )
6969 . option ( '-o, --output [path]' , 'Output file' )
70- . action ( function ( ) {
70+ . action ( function ( file , options ) {
7171 let inputFile = program . args [ 0 ]
7272
7373 if ( ! inputFile ) {
7474 console . error ( 'No input file given!' )
7575 process . exit ( 1 )
7676 }
7777
78- buildTailwind ( inputFile , loadConfig ( program . config ) , writeStrategy ( program ) )
78+ buildTailwind ( inputFile , loadConfig ( program . config ) , writeStrategy ( options ) )
7979 . then ( function ( ) {
8080 process . exit ( )
8181 } )
You can’t perform that action at this time.
0 commit comments