import commander from 'commander' ; export interface InitCliFlags { title ? : string ; author ? : string ; language ? : string ; theme ? : string ; size ? : string ; } export function setupInitParserProgram ( ) { const program = new commander . Command ( ) ; program . name ( 'vivliostyle init' ) . description ( 'create vivliostyle config file' ) . option ( '--title <title>' , 'title' ) . option ( '--author <author>' , 'author' ) . option ( '-l, --language <language>' , 'language' ) . option ( '-s, --size  <size>' , 'paper size' ) . option ( '-T, --theme <theme>' , 'theme' ) ; return program ; }