UNPKG

@dyrily/svg-convert

Version:
23 lines (19 loc) 607 B
import { Command } from 'commander' export interface ICLIArgs { src: string dest: string colorful: boolean allowOverride: boolean prefix: string type: string } const program = new Command() program .name('svg-creator') .option('-c, --colorful', 'svg彩色', false) .option('-O, --allow-override', '允许覆盖', false) .option('--prefix [string]', '组件前缀') .option('-t, --type <filepath>', '类型输出位置(文件)') .option('-s, --src <dirname>', 'svg源目录') .option('-d, --dest <dirname>', '组件输出目录') export default program