Socket
Socket
Sign inDemoInstall

commander

Package Overview
Dependencies
0
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.0.0 to 10.0.1

7

lib/option.js

@@ -102,3 +102,8 @@ const { InvalidArgumentError } = require('./error.js');

implies(impliedOptionValues) {
this.implied = Object.assign(this.implied || {}, impliedOptionValues);
let newImplied = impliedOptionValues;
if (typeof impliedOptionValues === 'string') {
// string is not documented, but easy mistake and we can do what user probably intended.
newImplied = { [impliedOptionValues]: true };
}
this.implied = Object.assign(this.implied || {}, newImplied);
return this;

@@ -105,0 +110,0 @@ }

2

package.json
{
"name": "commander",
"version": "10.0.0",
"version": "10.0.1",
"description": "the complete solution for node.js command-line programs",

@@ -5,0 +5,0 @@ "keywords": [

@@ -733,2 +733,4 @@ # Commander.js

For an overview of the life cycle events see [parsing life cycle and hooks](./docs/parsing-and-hooks.md).
## Automated help

@@ -765,2 +767,4 @@

Long descriptions are wrapped to fit the available width. (However, a description that includes a line-break followed by whitespace is assumed to be pre-formatted and not wrapped.)
### Custom help

@@ -924,3 +928,3 @@

There are methods getting the visible lists of arguments, options, and subcommands. There are methods for formatting the items in the lists, with each item having a _term_ and _description_. Take a look at `.formatHelp()` to see how they are used.
You can override any method on the [Help](./lib/help.js) class. There are methods getting the visible lists of arguments, options, and subcommands. There are methods for formatting the items in the lists, with each item having a _term_ and _description_. Take a look at `.formatHelp()` to see how they are used.

@@ -1120,2 +1124,3 @@ Example file: [configure-help.js](./examples/configure-help.js)

- [options taking varying arguments](./docs/options-taking-varying-arguments.md)
- [parsing life cycle and hooks](./docs/parsing-and-hooks.md)

@@ -1122,0 +1127,0 @@ ## Support

@@ -92,3 +92,2 @@ // Type definitions for commander

mandatory: boolean; // The option must have a value after parsing, which usually means it must be specified on command line.
optionFlags: string;
short?: string;

@@ -95,0 +94,0 @@ long?: string;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc