var path = require('path')
  , fs = require('fs')

module.exports = function(file) {
  file = file || path.resolve('usage.txt')

  return function(code) {
    var rs = fs.createReadStream(file)
    rs.pipe(process.stdout)
    rs.on('close', function() {
      if (code) process.exit(code)
    })
  }
}

var path = require('path')
  , fs = require('fs')

module.exports = function(file) {
  file = file
    ? file
    : module.parent && module.parent.filename
    ? path.resolve(path.dirname(module.parent.filename), 'usage.txt')
    : path.resolve('usage.txt')

  return function(code) {
    var rs = fs.createReadStream(file)
    rs.pipe(process.stdout)
    rs.on('close', function() {
      if (code) process.exit(code)
    })
  }
}

Use module.parent's directory for resolving usage.txt
Use module.parent's directory for resolving usage.txt

Changes the default behavior of resolving the usage.txt.

SEMVER: MAJOR
