This is a bit crappy as it uses the global commander variable. But whaeva.
function showHelpAndDie(message) {
        if (message) {
            console.error(message);
        }
        console.error(commander.helpInformation());
        process.exit(1);
    }