INNER CODE UNIT · TypeScript
main
niklashigi/apk-mitm · src/cli.ts:41
async function main() {
const args = parseArgs(process.argv.slice(2), {
string: ['apktool', 'certificate', 'tmp-dir', 'maps-api-key'],
boolean: ['help', 'skip-patches', 'wait', 'debuggable', 'keep-tmp-dir'],
})
if (args.help) {
showHelp()
process.exit()
}
const [input] = args._
if (!input) {
showHelp()
process.exit(1)
}
const inputPath = path.resolve(input)