Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootlint.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Rebert <github@chrisrebert.com>2016-07-24 01:53:37 +0300
committerGitHub <noreply@github.com>2016-07-24 01:53:37 +0300
commit4d65f5ddb1a6b25467315651afd0c61ce1525571 (patch)
treeff7c4bf7abc01feb7d27d298b4092039a3a385e1 /src
parentbcad9b7cc4595d1e97b983e5752b6102e4d621d7 (diff)
Travis CI: Upgrade to Node.js v6 (#386)
Also adjust Commander initialization to explicitly name our command, which prevents a crash within commander within our CLI unit tests under Node.js 6.
Diffstat (limited to 'src')
-rw-r--r--src/cli.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli.js b/src/cli.js
index c74d544..545b5b1 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -4,13 +4,13 @@
var Deferred = require('bluebird');
var chalk = require('chalk');
-var program = require('commander');
+var commander = require('commander');
var readFile = Deferred.promisify(require('fs').readFile);
var glob = Deferred.promisify(require('glob'));
var bootlint = require('./bootlint');
module.exports = function () {
- program
+ var program = (new commander.Command('bootlint'))
.version(require('../package.json').version)
.description('Lint the HTML of Bootstrap projects')
.usage('[options] [files...]')