Comparing version 0.1.3 to 0.1.4
@@ -28,3 +28,3 @@ | ||
parse = function(config) { | ||
var a, c, h, help, k, n, p, r, ref, s, short, v; | ||
var a, c, h, help, k, n, p, r, ref, s, short, v, version; | ||
a = process.argv.slice(2); | ||
@@ -68,2 +68,12 @@ c = noon.parse(config); | ||
} | ||
h += '\n\n'; | ||
version = c[n]['version']['=']; | ||
delete c[n]; | ||
h += noon.stringify(c, { | ||
maxalign: 21, | ||
colors: { | ||
key: chalk.gray, | ||
string: chalk.white | ||
} | ||
}); | ||
h += '\n'; | ||
@@ -81,3 +91,3 @@ while (a.length) { | ||
} else if (k === 'version') { | ||
console.log(c[n][k]['=']); | ||
console.log(version); | ||
process.exit(); | ||
@@ -84,0 +94,0 @@ } |
{ | ||
"name": "karg", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "option parser", | ||
@@ -5,0 +5,0 @@ "main": "js/karg.js", |
Sorry, the diff of this file is not supported yet
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
5096
5
97
1
1