cmdln
Advanced tools
Comparing version 3.2.3 to 3.2.4
# node-cmdln Changelog | ||
## 3.2.4 | ||
- Add support for `MyCLI.prototype.do_frob.allowUnknownOptions = true`. | ||
Instead of raising a usage error, unknown options to that subcommand | ||
will be passed through in `args`. | ||
## 3.2.3 | ||
@@ -4,0 +11,0 @@ |
@@ -654,3 +654,5 @@ /* | ||
interspersed: (handler.interspersedOptions !== undefined | ||
? handler.interspersedOptions : true) | ||
? handler.interspersedOptions : true), | ||
allowUnknown: (handler.allowUnknownOptions !== undefined | ||
? handler.allowUnknownOptions : false) | ||
}); | ||
@@ -657,0 +659,0 @@ opts = parser.parse(argv, 3); |
{ | ||
"name": "cmdln", | ||
"version": "3.2.3", | ||
"version": "3.2.4", | ||
"description": "helper lib for creating CLI tools with subcommands; think `git`, `svn`, `zfs`", | ||
@@ -5,0 +5,0 @@ "author": "Trent Mick (http://trentm.com)", |
@@ -199,4 +199,7 @@ `node-cmdln` is a node.js helper lib for creating CLI tools with subcommands | ||
false to have `tool <subcmd> ...` not allow interspersed options | ||
(i.e. options after the first argument. | ||
(i.e. options after the first argument). | ||
- `CLI.prototype.do_<subcmd>.allowUnknownOptions = <boolean>;` Set to | ||
true to have `tool <subcmd> ...` allow unknown options. | ||
- `<Cmdln>.prototype.init(opts, args, cb)` Hook run after option processing | ||
@@ -203,0 +206,0 @@ (`this.opts` is set), but before the subcommand handler is run. |
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
50946
761
235