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

cmdln

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cmdln - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

13

CHANGES.md
# node-cmdln Changelog
## 4.1.1
- `errHelp` fix: If the handler function for a subcmd didn't have a `<func>.name`
(i.e. it was anonymous), e.g. the former in:
MyCli.prototype.do_foo = function (subcmd, opts, args, cb) {}; # anon
MyCli.prototype.do_foo = function do_foo(subcmd, opts, args, cb) {};
then `UsageError.cmdlnErrHelpFromErr` would not correctly determine the
subcmd name for interpolation of a `{{cmd}}` template var in the handlers
`synopses`. Fix that.
## 4.1.0

@@ -4,0 +17,0 @@

2

lib/cmdln.js

@@ -238,3 +238,3 @@ /*

var synopses = err._cmdlnInst.synopsesFromSubcmd(
err._cmdlnHandler || err._cmdlnInst);
err._cmdlnSubcmd || err._cmdlnInst);
if (synopses.length === 1) {

@@ -241,0 +241,0 @@ errHelp = 'usage: ' + synopses[0];

{
"name": "cmdln",
"version": "4.1.0",
"version": "4.1.1",
"description": "helper lib for creating CLI tools with subcommands; think `git`, `svn`, `zfs`",

@@ -14,2 +14,3 @@ "author": "Trent Mick (http://trentm.com)",

"keywords": ["cmdln", "cli", "tool", "bash", "completion"],
"license": "MIT",

@@ -16,0 +17,0 @@ "dependencies": {

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