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.3 to 3.2.4

7

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

4

lib/cmdln.js

@@ -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.

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