| 5 | const { selectVerificationProfile } = require('../core/verification/profiles'); |
| 6 | |
| 7 | function parseArgs(argv) { |
| 8 | const args = { |
| 9 | projectRoot: process.cwd(), |
| 10 | json: false, |
| 11 | help: false, |
| 12 | }; |
| 13 | |
| 14 | for (let index = 0; index < argv.length; index++) { |
| 15 | const arg = argv[index]; |
| 16 | if (arg === '--project-root') args.projectRoot = path.resolve(argv[++index] || '.'); |
| 17 | else if (arg === '--json') args.json = true; |
| 18 | else if (arg === '--help' || arg === '-h') args.help = true; |
| 19 | } |
| 20 | |
| 21 | return args; |
| 22 | } |
| 23 | |
| 24 | function usage() { |
| 25 | return [ |