Socket
Socket
Sign inDemoInstall

cli

Package Overview
Dependencies
Maintainers
0
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

14

cli.js

@@ -178,3 +178,3 @@ /**

//Strip off argv[0] if it's 'node'
if (!keep_arg0 && ('node' === cli.app || 'coffee' === cli.app)) {
if (!keep_arg0 && 'node' === cli.app) {
cli.app = arr.shift();

@@ -476,2 +476,14 @@ }

/**
* Sets the app name.
*
* @param {String} name
* @return cli (for chaining)
* @api public
*/
cli.setName = function (name) {
cli.app = name;
return cli;
};
/**
* Sets the app version. `v` can be the version number, or a path

@@ -478,0 +490,0 @@ * to package.json. If this method is not called, cli will attempt

2

package.json
{ "name" : "cli",
"description" : "A command line opts/args parser for node",
"version" : "0.1.4",
"version" : "0.1.5",
"homepage" : "http://github.com/chriso/cli",

@@ -5,0 +5,0 @@ "keywords" : ["cli","command line","opts","parseopt","opt","args","console","argsparse","optparse","daemon"],

Sorry, the diff of this file is not supported yet

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