Ok, I'll get rid of the timing bits (wasn't sure about them, just copied over from cordova-cli) and rename the main export to be something like parseCLI. This file will then be a one-liner with require('./src/mca').parseCLI()