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

@oclif/core

Package Overview
Dependencies
Maintainers
2
Versions
416
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/core - npm Package Compare versions

Comparing version 3.23.1 to 3.24.0

3

lib/help/command.js

@@ -61,3 +61,4 @@ "use strict";

return args.map((a) => {
const name = a.name.toUpperCase();
// Add ellipsis to indicate that the argument takes multiple values if strict is false
const name = this.command.strict === false ? `${a.name.toUpperCase()}...` : a.name.toUpperCase();
let description = a.description || '';

@@ -64,0 +65,0 @@ if (a.default)

@@ -62,4 +62,4 @@ import { Command } from '../command';

private flagMap;
constructor(cmd: Command.Cached | Command.Class | Command.Loadable);
static generate(cmd: Command.Cached | Command.Class | Command.Loadable): string;
constructor(cmd: Command.Loadable);
static generate(cmd: Command.Loadable): string;
toString(): string;

@@ -66,0 +66,0 @@ private combineElementsToFlag;

@@ -82,3 +82,5 @@ "use strict";

if (this.cmd.args) {
const a = Object.values((0, ensure_arg_object_1.ensureArgObject)(this.cmd.args)).map((arg) => arg.required ? arg.name.toUpperCase() : `[${arg.name.toUpperCase()}]`) || [];
// If strict is false, add ellipsis to indicate that the argument takes multiple values
const suffix = this.cmd.strict === false ? '...' : '';
const a = Object.values((0, ensure_arg_object_1.ensureArgObject)(this.cmd.args)).map((arg) => arg.required ? `${arg.name.toUpperCase()}${suffix}` : `[${arg.name.toUpperCase()}${suffix}]`) || [];
opts.push(...a);

@@ -85,0 +87,0 @@ }

{
"name": "@oclif/core",
"description": "base library for oclif CLIs",
"version": "3.23.1",
"version": "3.24.0",
"author": "Salesforce",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/core/issues",

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