Skip to content

Commit

Permalink
Skip running on node < 8 (closes #41)
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Sep 6, 2019
1 parent 725bb0a commit e804671
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/env node
'use strict'

if (process.version.match(/^v(\d+)\./)[1] < 8) {
console.error('hallmark: Node 8 or greater is required. `hallmark` did not run.')
process.exit(0)
}

const argv = require('subarg')(process.argv.slice(2), {
boolean: ['fix', 'help', 'version'],
string: ['report'],
Expand Down

0 comments on commit e804671

Please sign in to comment.