import findUp from 'find-up-json' ; import { program , updater } from 'specialist' ; import { description , name , version } from '../package.json' ; import IconFontBuildr from '.' ; updater ( { name , version } ) ; program . name ( name ) . version ( version ) . description ( description ) . option ( '-c, --config <path>' , 'Path to the config file' ) . action ( options => { const config = ( options . config && require ( options . config ) ) || findUp ( 'icon_font.json' , process . cwd ( ) ) ?. content || { } ; new IconFontBuildr ( config ) . build ( ) ; } ) ; program . parse ( ) ;