Socket
Socket
Sign inDemoInstall

cac

Package Overview
Dependencies
Maintainers
3
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 6.7.1 to 6.7.2

2

deno/Option.ts

@@ -37,3 +37,3 @@ import { removeBrackets, camelcaseOptionName } from "./utils.ts";

if (this.negated) {
if (this.negated && this.config.default == null) {
this.config.default = true;

@@ -40,0 +40,0 @@ }

@@ -247,3 +247,3 @@ 'use strict';

this.name = this.names[this.names.length - 1];
if (this.negated) {
if (this.negated && this.config.default == null) {
this.config.default = true;

@@ -250,0 +250,0 @@ }

{
"name": "cac",
"version": "6.7.1",
"version": "6.7.2",
"description": "Simple yet powerful framework for building command-line apps.",

@@ -5,0 +5,0 @@ "repository": {

@@ -45,2 +45,3 @@ <img width="945" alt="2017-07-26 9 27 05" src="https://user-images.githubusercontent.com/8784712/28623641-373450f4-7249-11e7-854d-1b076dab274d.png">

- [cli.outputHelp()](#clioutputhelp)
- [cli.usage(text)](#cliusagetext)
- [Command Instance](#command-instance)

@@ -52,2 +53,3 @@ - [command.option()](#commandoption)

- [command.example(example)](#commandexampleexample)
- [command.usage(text)](#commandusagetext)
- [Events](#events)

@@ -79,3 +81,3 @@ - [FAQ](#faq)

cli.option('--type <type>', 'Choose a project type', {
default: 'node',
default: 'node'
})

@@ -97,3 +99,3 @@

cli.option('--type [type]', 'Choose a project type', {
default: 'node',
default: 'node'
})

@@ -148,3 +150,3 @@ cli.option('--name <name>', 'Provide your name')

.option('--clear-screen', 'Clear screen')
.action((options) => {
.action(options => {
console.log(options.clearScreen)

@@ -229,3 +231,3 @@ })

.example('--env.API_SECRET xxx')
.action((options) => {
.action(options => {
console.log(options)

@@ -416,2 +418,8 @@ })

#### cli.usage(text)
- Type: `(text: string) => CLI`
Add a global usage text. This is not used by sub-commands.
### Command Instance

@@ -471,2 +479,8 @@

#### command.usage(text)
- Type: `(text: string) => Command`
Add a usage text for this command.
### Events

@@ -473,0 +487,0 @@

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