import * as yargs from 'yargs' ; import Wraptso from '../index' ; let args = yargs . option ( 'output' , { describe : 'Folder for generated files' , alias : 'o' } ) . argv ; let pattern = args . _ [ 0 ] ; let outputDir = args [ 'output' ] ; let wraptso = new Wraptso ( pattern , outputDir ) ; wraptso . run ( ) . then ( ( ) => { } ) . catch ( error => { console . error ( error ) ; process . exit ( 1 ) ; } ) ;