Comparing version 4.1.0 to 4.1.1
# 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 @@ |
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88639