Exit the program and print the usage from usage.md or a provided string.
usage.md
Usage: your_sweet_module [OPTIONS] COMMAND
index.js
var printUsage = require('print_usage');
printUsage()
$ Usage: your_sweet_module [OPTIONS] COMMAND
or:
printUsage('Usage: my_other_sweet_module [-abfjd] [--thing]');
$ Usage: my_other_sweet_module [-abfjd] [--thing]
With npm do:
npm install print_usage
MIT