Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,7 @@ | ||
1.0.3 / 2015-10-27 | ||
------------------ | ||
* Fix parse `=` in args: `--examplepath="C:\myfolder\env=x64"`. #84, @CatWithApple. | ||
1.0.2 / 2015-03-22 | ||
@@ -2,0 +8,0 @@ ------------------ |
@@ -56,2 +56,5 @@ /** | ||
var ArgumentParser = module.exports = function ArgumentParser(options) { | ||
if (!(this instanceof ArgumentParser)) { | ||
return new ArgumentParser(options); | ||
} | ||
var self = this; | ||
@@ -742,5 +745,4 @@ options = options || {}; | ||
if (argString.indexOf('=') >= 0) { | ||
var argStringSplit = argString.split('='); | ||
optionString = argStringSplit[0]; | ||
argExplicit = argStringSplit[1]; | ||
optionString = argString.split('=', 1)[0]; | ||
argExplicit = argString.slice(optionString.length + 1); | ||
@@ -747,0 +749,0 @@ if (!!this._optionStringActions[optionString]) { |
{ | ||
"name": "argparse", | ||
"description": "Very powerful CLI arguments parser. Native port of argparse - python's options parsing library", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"keywords": [ | ||
@@ -17,11 +17,4 @@ "cli", | ||
], | ||
"bugs": { | ||
"url": "https://github.com/nodeca/argparse/issues" | ||
}, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/nodeca/argparse.git" | ||
}, | ||
"main": "./index.js", | ||
"repository": "nodeca/argparse", | ||
"scripts": { | ||
@@ -28,0 +21,0 @@ "test": "make test" |
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 bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
125375
3477
1
3