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

posix-argv-parser

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posix-argv-parser - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

1

lib/parser.js

@@ -23,2 +23,3 @@ var B = require("buster-core");

var opt = getOption(options, arg);
if (!opt) { throw new Error("Unknown option '" + arg + "'"); }
var flag = arg.slice(0, 2);

@@ -25,0 +26,0 @@ var extra = arg.slice(2);

4

package.json
{
"name": "posix-argv-parser",
"version": "0.4.0",
"version": "0.4.1",
"description": "POSIX compliant command-line argument parser.",

@@ -27,3 +27,3 @@ "homepage": "http://busterjs.org/docs/posix-argv-parser",

"buster-core": ">=0.6.2",
"when": "~1.3"
"when": "https://github.com/cujojs/when/tarball/1.3.0"
},

@@ -30,0 +30,0 @@ "devDependencies": {

@@ -212,3 +212,11 @@ var buster = require("buster");

assert.match(this.a.options[1].description, "Bla bla");
},
"fails gracefully on non-existent option": function (done) {
this.a.createOption(["-p"]);
this.a.parse(["-node"], done(function (errors, options) {
assert.match(errors[0], "Unknown option '-node'");
}));
}
});
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