Parses a help
string and returns an object with options, aliases, arugments, and descriptions.
It will find and return the contents of the first package.json
found, recursing up, starting on dir
. It can optionally normalize the data and set the process.title
to the package name.
Ensures all properties of a
exist in b
-and optionally, also vice versa. Returns true
if they do.
Splits argv
into two arrays by the first separator
found. If it's not found, the second array returned will be empty.
Generated using TypeDoc
Formats and prints an error message.
options
:exit
: if passed, it will exit the process with that code.logger
: if passed, it will use that instead of console.errordebug
: if true, it will also log the error itself after its message -if logger is passed, it will use logger.debug instead of console.debug