Socket
Socket
Sign inDemoInstall

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

Comparing version 3.2.2 to 3.2.3

8

CHANGES.md
# 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 @@

6

lib/cmdln.js

@@ -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) {

2

package.json
{
"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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc