cmdln
Advanced tools
Comparing version 3.2.2 to 3.2.3
# node-cmdln Changelog | ||
## 3.2.3 | ||
- Add support for `MyCLI.prototype.do_frob.interspersedOptions = false` | ||
to disable interspersed options (i.e. options after the first argument) | ||
to a given command. By default cmdln allows interspersed options | ||
for subcommands (using the node-dashdash default). | ||
## 3.2.2 | ||
@@ -4,0 +12,0 @@ |
@@ -651,3 +651,7 @@ /* | ||
try { | ||
var parser = new dashdash.Parser({options: handler.options}); | ||
var parser = new dashdash.Parser({ | ||
options: handler.options, | ||
interspersed: (handler.interspersedOptions !== undefined | ||
? handler.interspersedOptions : true) | ||
}); | ||
opts = parser.parse(argv, 3); | ||
@@ -654,0 +658,0 @@ } catch (e) { |
{ | ||
"name": "cmdln", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"description": "helper lib for creating CLI tools with subcommands; think `git`, `svn`, `zfs`", | ||
@@ -5,0 +5,0 @@ "author": "Trent Mick (http://trentm.com)", |
@@ -197,2 +197,6 @@ `node-cmdln` is a node.js helper lib for creating CLI tools with subcommands | ||
- `CLI.prototype.do_<subcmd>.interspersedOptions = <boolean>;` Set to | ||
false to have `tool <subcmd> ...` not allow interspersed options | ||
(i.e. options after the first argument. | ||
- `<Cmdln>.prototype.init(opts, args, cb)` Hook run after option processing | ||
@@ -199,0 +203,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
50492
759
232