#!/usr/bin/env node
var standardVersion = require('../index')
var cmdParser = require('../command')

standardVersion(cmdParser.argv, function (err) {
  if (err) {
    process.exit(1)
  }
})

#!/usr/bin/env node
var standardVersion = require('../index')
var cmdParser = require('../command')

/* istanbul ignore if */
if (process.version.match(/v(\d+)\./)[1] < 4) {
  console.error('standard-version: Node v4 or greater is required. `standard-version` did not run.')
} else {
  standardVersion(cmdParser.argv, function (err) {
    if (err) {
      process.exit(1)
    }
  })
}

print error and don't run with node <4, closes #124