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

command-line-args

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

command-line-args - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

test/default-value.js

12

lib/command-line-args.js

@@ -42,2 +42,10 @@ var w = require("wodge");

/* set defaults */
var optionsWithDefault = optionDefinitions.filter(function(option){
return option.value;
});
optionsWithDefault.forEach(function(option){
output[option.name] = option.value;
});
while (typeof(arg = argv.shift()) !== "undefined"){

@@ -77,5 +85,1 @@ if (longArg.test(arg)){

}
// var a = [ "--colours", "green", "red", "yellow", "--tramps", "mike", "colin" ];
// // a.shift();
// console.dir(spliceWhile(a, /^\w+/))
{
"name": "command-line-args",
"version": "0.0.2",
"version": "0.1.0",
"description": "Parse command line options",

@@ -5,0 +5,0 @@ "repository": "https://github.com/75lb/command-line-args.git",

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