Skip to content

joshwyatt/print_usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

print_usage

Exit the program and print the usage from usage.md or a provided string.

Example

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]

install

With npm do:

npm install print_usage

license

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published