Comparing version 2.2.1 to 2.2.2
10
index.js
@@ -5,2 +5,3 @@ 'use strict'; | ||
var path = _interopDefault(require('path')); | ||
var minimist = _interopDefault(require('minimist')); | ||
@@ -13,2 +14,5 @@ var table = _interopDefault(require('text-table')); | ||
delete require.cache[__filename] | ||
var parentDir = path.dirname(module.parent.filename) | ||
var prefixedOption = function (option, aliasOptions) { | ||
@@ -84,3 +88,5 @@ var options = [option] | ||
} | ||
this.pkg = readPkg.sync().pkg | ||
this.pkg = readPkg.sync({ | ||
cwd: parentDir | ||
}).pkg | ||
this.cliUsage = (chalk.yellow(this.pkg.name)) + " " + (chalk.grey('[options] [commands]')) | ||
@@ -136,3 +142,3 @@ | ||
var optionsTable = table(Object.keys(this.options).map(function (option) { return [ | ||
chalk.yellow(prefixedOption(option, this$1.aliasOptions)), | ||
chalk.yellow(prefixedOption(option, this$1.aliasOptions)), | ||
chalk.grey(this$1.options[option].description), | ||
@@ -139,0 +145,0 @@ showDefaultValue(this$1.options[option].defaultValue) |
{ | ||
"name": "cac", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Command & Conquer, the command-line queen.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10490
196