Socket
Socket
Sign inDemoInstall

cac

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cac - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

18

index.js

@@ -83,2 +83,3 @@ 'use strict';

this.pkg = readPkg.sync().pkg
this.cliUsage = (chalk.yellow(this.pkg.name)) + " " + (chalk.grey('[options] [commands]'))

@@ -126,3 +127,3 @@ this

return this
return this
};

@@ -147,3 +148,3 @@

var help = (this.pkg.description ? ("\n" + (this.pkg.description) + "\n") : '') + "\nUsage: " + (chalk.yellow(this.pkg.name)) + " " + (chalk.grey('[options] [commands]')) + "\n\nCommands:\n\n" + (indent(commandsTable, 2)) + "\n\nOptions:\n\n" + (indent(optionsTable, 2)) + "\n"
var help = (this.pkg.description ? ("\n" + (this.pkg.description) + "\n") : '') + "\nUsage: " + (this.cliUsage) + "\n\nCommands:\n\n" + (indent(commandsTable, 2)) + "\n\nOptions:\n\n" + (indent(optionsTable, 2)) + "\n"

@@ -189,2 +190,7 @@ console.log(indent(help, 2))

CAC.prototype.usage = function usage (text) {
this.cliUsage = text
return this
};
CAC.prototype.string = function string (value) {

@@ -199,4 +205,2 @@ this.string = value

CAC.prototype.parse = function parse (argv) {
var this$1 = this;
argv = argv || process.argv.slice(2)

@@ -207,7 +211,3 @@ this.argv = parseArgv(argv, {

string: this.string,
boolean: this.boolean,
unknown: function (arg) {
this$1.unknownFn(arg)
return false
}
boolean: this.boolean
})

@@ -214,0 +214,0 @@ if (this.argv.flags.help) {

{
"name": "cac",
"version": "2.1.1",
"version": "2.2.0",
"description": "Command & Conquer, the command-line queen.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -55,2 +55,6 @@ # cac [![NPM version](https://img.shields.io/npm/v/cac.svg)](https://npmjs.com/package/cac) [![NPM downloads](https://img.shields.io/npm/dm/cac.svg)](https://npmjs.com/package/cac) [![Build Status](https://img.shields.io/circleci/project/egoist/cac/master.svg)](https://circleci.com/gh/egoist/cac)

## .usage(text)
- **text**: `string`, the cli usage. default is `$bin [options] [commands]`
## .parse(argv)

@@ -57,0 +61,0 @@

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