diff --git a/src/cli/argv.coffee b/src/cli/argv.coffee index 72e3f8d..faf7e72 100644 --- a/src/cli/argv.coffee +++ b/src/cli/argv.coffee @@ -52,6 +52,12 @@ module.exports = (argv) -> , (err) -> if err console.error err - process.exit 1 + exit 1 else - process.exit exitCode + exit exitCode + +exit = (code = 0) -> + if process.platform is 'win32' + require('exit') code + else + process.exit code