npm install command-line-tool




Example
``js`
const tool = require('command-line-tool')
* command-line-tool
* [.stop([message])](#module_command-line-tool.stop)
* .printError(message)
* .printOutput(message)
* [.halt([err], [options])](#module_command-line-tool.halt)
* [.getCli(definitions, [usageSections], [argv])](#module_command-line-tool.getCli) ⇒ object
Kind: static method of command-line-tool
| Param | Type | Description |
| --- | --- | --- |
| [message] | string | Array.<string> | One or more messages to be written to stderr before exiting. May contain ansi.format markup. |
Kind: static method of command-line-tool
| Param | Type | Description |
| --- | --- | --- |
| message | string | Array.<string> | input message(s) |
Kind: static method of command-line-tool
| Param | Type | Description |
| --- | --- | --- |
| message | string | Array.<string> | input message(s) |
Kind: static method of command-line-tool
| Param | Type | Description |
| --- | --- | --- |
| [err] | Error | the error instance |
| [options] | object | |
| [options.exitCode] | number | defaults to 1 |
| [options.stack] | boolean | defaults to false |
Kind: static method of command-line-tool
| Param | Type | Description |
| --- | --- | --- |
| definitions | Array.<OptionDefinitions> | to be passed to command-line-args |
| [usageSections] | Array.<section> | to be passed to command-line-usage |
| [argv] | Array.<string> | If supplied, this argv array is parsed instead of process.argv`. |
*
© 2015-18 Lloyd Brookes \<75pound@gmail.com\>. Documented by jsdoc-to-markdown.