cmdln
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -5,2 +5,7 @@ # node-cmdln Changelog | ||
## 4.2.1 | ||
- It turns out specifying a `finale` option to `cmdln.main(CLI, OPTIONS)` never | ||
worked. Fix that. | ||
## 4.2.0 | ||
@@ -48,7 +53,10 @@ | ||
- softexit (the default): set `process.exitCode` if supported, else call | ||
`process.exit()` | ||
- exit: call `process.exit()` which can result in std handles not being flushed | ||
- callback: call the given `options.callback` | ||
- none: Do nothing | ||
- "softexit" (the default): set `process.exitCode` if the node.js version | ||
supports it (node v0.12 and above do), else call `process.exit()`. Note | ||
the warning above that a process with open handles (e.g. a setTimeout) | ||
will *hang*. | ||
- "exit": call `process.exit()` which can result in std handles not being | ||
flushed | ||
- "callback": call the given `options.callback` | ||
- "none": Do nothing | ||
@@ -55,0 +63,0 @@ |
@@ -1417,3 +1417,3 @@ /* | ||
format('invalid options.finale "%s": valid values are "%s"', | ||
options.finale, '", "'.join(VALID_FINALES))); | ||
options.finale, VALID_FINALES.join('", "'))); | ||
finale = options.finale | ||
@@ -1420,0 +1420,0 @@ } else { |
{ | ||
"name": "cmdln", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "helper lib for creating CLI tools with subcommands; think `git`, `svn`, `zfs`", | ||
@@ -5,0 +5,0 @@ "author": "Trent Mick (http://trentm.com)", |
90939