Skip to content

Commit

Permalink
remove check as requested by davidmarkclements
Browse files Browse the repository at this point in the history
  • Loading branch information
Joey van Dijk committed Mar 6, 2017
1 parent 9826cfb commit 913abdf
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions bin.js
Expand Up @@ -5,25 +5,3 @@
var pretty = require('./pretty')

module.exports = pretty

if (require.main === module) {
if (arg('-h') || arg('--help')) {
usage().pipe(process.stdout)
} else if (arg('-v') || arg('--version')) {
console.log(require('./package.json').version)
} else {
process.stdin.pipe(pretty({
timeTransOnly: arg('-t'),
levelFirst: arg('-l')
})).pipe(process.stdout)
}
}

function usage () {
return require('fs')
.createReadStream(require('path').join(__dirname, 'usage.txt'))
}

function arg (s) {
return !!~process.argv.indexOf(s)
}

0 comments on commit 913abdf

Please sign in to comment.