Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

argparse

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

argparse - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

CHANGELOG.md

@@ -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 @@ ------------------

8

lib/argument_parser.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc