idlize
1import { argv } from 'process'2import glob from 'glob'3import * as path from "node:path"4
5if (argv.length < 3) {6console.log("Warning : please input your cpp directory.")7process.exit()8}
9
10let dir = argv[2]11let sources = glob.sync(dir + '/*cpp', { cwd: path.resolve('.') })12
13console.log(`${sources}`)